7
7
pull_request :
8
8
9
9
env :
10
- NODE_VERSION : 14
10
+ NODE_VERSION : 20
11
11
PERCY_PARALLEL_NONCE : ${{ github.run_id }}-${{ github.run_number }}
12
12
PERCY_PARALLEL_TOTAL : 1
13
13
@@ -18,24 +18,24 @@ jobs:
18
18
timeout-minutes : 5
19
19
steps :
20
20
- name : Check out a copy of the repo
21
- uses : actions/checkout@v3
21
+ uses : actions/checkout@v4
22
22
23
- - name : Check lockfile version
24
- uses : mansona/npm-lockfile-version@v1
23
+ - uses : pnpm/action-setup@v4
24
+ name : Install pnpm
25
+ with :
26
+ version : 8
25
27
26
28
- name : Use Node.js ${{ env.NODE_VERSION }}
27
- uses : actions/setup-node@v3
29
+ uses : actions/setup-node@v4
28
30
with :
29
- cache : ' npm '
31
+ cache : ' pnpm '
30
32
node-version : ${{ env.NODE_VERSION }}
31
33
32
- - run : npm i -g npm@9
33
-
34
34
- name : Install dependencies
35
- run : npm ci
35
+ run : pnpm i --frozen-lockfile
36
36
37
37
- name : Lint
38
- run : npm run lint
38
+ run : pnpm run lint
39
39
40
40
41
41
test-app :
@@ -44,24 +44,26 @@ jobs:
44
44
timeout-minutes : 10
45
45
steps :
46
46
- name : Check out a copy of the repo
47
- uses : actions/checkout@v3
47
+ uses : actions/checkout@v4
48
+
49
+ - uses : pnpm/action-setup@v4
50
+ name : Install pnpm
51
+ with :
52
+ version : 8
48
53
49
54
- name : Use Node.js ${{ env.NODE_VERSION }}
50
- uses : actions/setup-node@v3
55
+ uses : actions/setup-node@v4
51
56
with :
52
- cache : ' npm '
57
+ cache : ' pnpm '
53
58
node-version : ${{ env.NODE_VERSION }}
54
59
55
- - run : npm i -g npm@9
56
-
57
- - name : Install dependencies
58
- run : npm ci
60
+ - run : pnpm install --frozen-lockfile
59
61
60
- - run : npm run clone
62
+ - run : pnpm run clone
61
63
62
64
- name : Test
63
65
env :
64
66
PERCY_PARALLEL_NONCE : ${{ env.PERCY_PARALLEL_NONCE }}
65
67
PERCY_PARALLEL_TOTAL : ${{ env.PERCY_PARALLEL_TOTAL }}
66
68
PERCY_TOKEN : 5ad6687f6b1ad3dec2b964f94d3d59ff3880baccf1492c0663e85c1ce79c1a52
67
- run : npx percy exec -- npm run test:ember
69
+ run : pnpm percy exec -- pnpm run test:ember
0 commit comments