@@ -17,42 +17,27 @@ jobs:
17
17
runs-on : ubuntu-latest
18
18
timeout-minutes : 3
19
19
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
27
23
with :
28
- cache : ' npm '
24
+ cache : ' pnpm '
29
25
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
36
28
37
29
test-app :
38
30
name : Test app
39
31
runs-on : ubuntu-latest
40
32
timeout-minutes : 5
41
33
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
47
37
with :
48
- cache : ' npm '
38
+ cache : ' pnpm '
49
39
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
56
41
env :
57
42
PERCY_PARALLEL_NONCE : ${{ env.PERCY_PARALLEL_NONCE }}
58
43
PERCY_PARALLEL_TOTAL : ${{ env.PERCY_PARALLEL_TOTAL }}
@@ -63,25 +48,19 @@ jobs:
63
48
runs-on : ubuntu-latest
64
49
timeout-minutes : 5
65
50
steps :
66
- - name : Check out a copy of the repo
67
- uses : actions/checkout@v2
51
+ - uses : actions/checkout@v4
68
52
with :
69
53
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
73
56
with :
74
- cache : ' npm '
57
+ cache : ' pnpm '
75
58
node-version : ${{ env.NODE_VERSION }}
76
-
77
- - name : Install dependencies
78
- run : npm ci
79
-
80
59
- name : Build production app
81
- run : npm run build
60
+ run : pnpm run build
82
61
83
62
- name : Run Lighthouse
84
- run :
npx @ lhci/[email protected] autorun
63
+ run : pnpm lhci autorun
85
64
env :
86
65
LHCI_GITHUB_APP_TOKEN : ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
87
66
LHCI_TOKEN : ${{ secrets.LHCI_TOKEN }}
0 commit comments