77 pull_request :
88
99env :
10- NODE_VERSION : 14
10+ NODE_VERSION : 20
1111 PERCY_PARALLEL_NONCE : ${{ github.run_id }}-${{ github.run_number }}
1212 PERCY_PARALLEL_TOTAL : 1
1313
@@ -21,40 +21,28 @@ jobs:
2121 runs-on : ubuntu-latest
2222 timeout-minutes : 3
2323 steps :
24- - name : Check out a copy of the repo
25- uses : actions/checkout@v3
26-
27- - name : Use Node.js ${{ env.NODE_VERSION }}
28- uses : actions/setup-node@v3
24+ - uses : actions/checkout@v4
25+ - uses : pnpm/action-setup@v4
26+ - uses : actions/setup-node@v4
2927 with :
30- cache : ' npm '
28+ cache : ' pnpm '
3129 node-version : ${{ env.NODE_VERSION }}
32-
33- - name : Install dependencies
34- run : npm ci
35-
36- - name : Lint
37- run : npm run lint
30+ - run : pnpm i --frozen-lockfile
31+ - run : pnpm run lint
3832
3933 test-app :
4034 name : Test app
4135 runs-on : ubuntu-latest
4236 timeout-minutes : 3
4337 steps :
44- - name : Check out a copy of the repo
45- uses : actions/checkout@v3
46-
47- - name : Use Node.js ${{ env.NODE_VERSION }}
48- uses : actions/setup-node@v3
38+ - uses : actions/checkout@v4
39+ - uses : pnpm/action-setup@v4
40+ - uses : actions/setup-node@v4
4941 with :
50- cache : ' npm '
42+ cache : ' pnpm '
5143 node-version : ${{ env.NODE_VERSION }}
52-
53- - name : Install dependencies
54- run : npm ci
55-
56- - name : Test
57- run : npx percy exec -- npm run test
44+ - run : pnpm install --frozen-lockfile
45+ - run : pnpm percy exec -- pnpm run test
5846 env :
5947 PERCY_PARALLEL_NONCE : ${{ env.PERCY_PARALLEL_NONCE }}
6048 PERCY_PARALLEL_TOTAL : ${{ env.PERCY_PARALLEL_TOTAL }}
0 commit comments