@@ -17,42 +17,27 @@ jobs:
1717 runs-on : ubuntu-latest
1818 timeout-minutes : 3
1919 steps :
20- - name : Check out a copy of the repo
21- uses : actions/checkout@v2
22-
23- - uses : mansona/npm-lockfile-version@v1
24-
25- - name : Use Node.js ${{ env.NODE_VERSION }}
26- uses : actions/setup-node@v2
20+ - uses : actions/checkout@v4
21+ - uses : pnpm/action-setup@v4
22+ - uses : actions/setup-node@v4
2723 with :
28- cache : ' npm '
24+ cache : ' pnpm '
2925 node-version : ${{ env.NODE_VERSION }}
30-
31- - name : Install dependencies
32- run : npm ci
33-
34- - name : Lint
35- run : npm run lint
26+ - run : pnpm i --frozen-lockfile
27+ - run : pnpm run lint
3628
3729 test-app :
3830 name : Test app
3931 runs-on : ubuntu-latest
4032 timeout-minutes : 5
4133 steps :
42- - name : Check out a copy of the repo
43- uses : actions/checkout@v2
44-
45- - name : Use Node.js ${{ env.NODE_VERSION }}
46- uses : actions/setup-node@v2
34+ - uses : actions/checkout@v4
35+ - uses : pnpm/action-setup@v4
36+ - uses : actions/setup-node@v4
4737 with :
48- cache : ' npm '
38+ cache : ' pnpm '
4939 node-version : ${{ env.NODE_VERSION }}
50-
51- - name : Install dependencies
52- run : npm ci
53-
54- - name : Test
55- run : npx percy exec -- npm run test
40+ - run : pnpm percy exec -- npm run test
5641 env :
5742 PERCY_PARALLEL_NONCE : ${{ env.PERCY_PARALLEL_NONCE }}
5843 PERCY_PARALLEL_TOTAL : ${{ env.PERCY_PARALLEL_TOTAL }}
@@ -63,25 +48,19 @@ jobs:
6348 runs-on : ubuntu-latest
6449 timeout-minutes : 5
6550 steps :
66- - name : Check out a copy of the repo
67- uses : actions/checkout@v2
51+ - uses : actions/checkout@v4
6852 with :
6953 ref : ${{ github.event.pull_request.head.sha }}
70-
71- - name : Use Node.js ${{ env.NODE_VERSION }}
72- uses : actions/setup-node@v2
54+ - uses : pnpm/action-setup@v4
55+ - uses : actions/setup-node@v4
7356 with :
74- cache : ' npm '
57+ cache : ' pnpm '
7558 node-version : ${{ env.NODE_VERSION }}
76-
77- - name : Install dependencies
78- run : npm ci
79-
8059 - name : Build production app
81- run : npm run build
60+ run : pnpm run build
8261
8362 - name : Run Lighthouse
84- run :
npx @ lhci/[email protected] autorun 63+ run : pnpm lhci autorun
8564 env :
8665 LHCI_GITHUB_APP_TOKEN : ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
8766 LHCI_TOKEN : ${{ secrets.LHCI_TOKEN }}
0 commit comments