Skip to content

Commit 9e2d23d

Browse files
committed
updated Setup Node step
1 parent 817ef88 commit 9e2d23d

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/testCoverage.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ jobs:
2929
ref: ${{ github.event.inputs.pr_number && format('refs/pull/{0}/merge', github.event.inputs.pr_number) || github.ref }}
3030

3131
- name: Setup Node
32-
uses: actions/setup-node@v4
33-
with:
34-
node-version: "18"
35-
cache: "npm"
32+
uses: ./.github/actions/composite/setupNode
3633

3734
- name: Install Dependencies
3835
run: npm install
@@ -62,11 +59,8 @@ jobs:
6259
with:
6360
fetch-depth: 0 # Get full history
6461
ref: ${{ github.event.inputs.pr_number && format('refs/pull/{0}/merge', github.event.inputs.pr_number) || github.ref }}
65-
- uses: actions/setup-node@v4
66-
with:
67-
node-version: "18"
68-
cache: "npm"
69-
- run: npm install
62+
- name: Setup Node
63+
uses: ./.github/actions/composite/setupNode
7064

7165
- name: Run Jest Shard ${{ matrix.shard }}
7266
run: npm test -- --coverage --silent --passWithNoTests --shard=${{ matrix.shard }}/${{ strategy.job-total }} --max-workers ${{ needs.setup.outputs.cpu_cores }}

0 commit comments

Comments
 (0)