Raw
1 name: "Setup test env"
2 description: "Setup test environment for actions"
3
4 inputs:
5 node-version:
6 description: "Node version"
7 required: false
8 default: "22"
9 cache-extension:
10 description: "Extension for fetching cached dependencies"
11 required: true
12
13 runs:
14 using: "composite"
15 steps:
16 - name: Cancel Previous Runs
17 uses: styfle/cancel-workflow-action@0.11.0
18 with:
19 access_token: ${{ github.token }}
20
21 - name: Setup Node.js environment
22 uses: actions/setup-node@v4
23 with:
24 node-version: ${{ inputs.node-version }}
25 cache: "yarn"
26
27 - name: Install dependencies
28 uses: ./.github/actions/cache-deps
29 with:
30 extension: ${{ inputs.cache-extension }}