@@ -19,38 +19,41 @@ jobs:
19
19
20
20
steps :
21
21
- name : Checkout
22
- uses : actions/checkout@v3
23
- - name : Use Volta
24
- uses : volta-cli/action@v4
25
- - name : Node Modules Cache
26
- id : cache-npm
27
- uses : actions/cache@v3
22
+ uses : actions/checkout@v4
23
+ - uses : pnpm/action-setup@v3
28
24
with :
29
- path : |
30
- .npm
31
- node_modules/
32
- key : ci-npm-${{ hashFiles('package-lock.json') }}
25
+ version : 8
26
+ - name : Install Node
27
+ uses : actions/setup-node@v4
28
+ with :
29
+ node-version : 18
30
+ cache : pnpm
33
31
- name : Install Dependencies
34
- if : steps.cache-npm.outputs.cache-hit != 'true'
35
- run : npm ci --cache .npm
32
+ run : pnpm i --frozen-lockfile
36
33
- name : Lint
37
34
run : npm run lint
38
35
- name : Run Tests
39
- run : . bin/restore-env.sh && node_modules/.bin/ ember test
36
+ run : pnpm ember test
40
37
41
38
floating :
42
39
name : " Floating Dependencies"
43
40
runs-on : ubuntu-latest
44
41
timeout-minutes : 8
45
42
46
43
steps :
47
- - uses : actions/checkout@v3
48
- - name : Use Volta
49
- uses : volta-cli/action@v4
44
+ - uses : actions/checkout@v4
45
+ - uses : pnpm/action-setup@v3
46
+ with :
47
+ version : 8
48
+ - name : Install Node
49
+ uses : actions/setup-node@v4
50
+ with :
51
+ node-version : 18
52
+ cache : pnpm
50
53
- name : Install Dependencies
51
- run : npm i --cache .npm
54
+ run : pnpm install --no-lockfile
52
55
- name : Run Tests
53
- run : CI=true node_modules/.bin/ ember test
56
+ run : CI=true pnpm ember test
54
57
55
58
try-scenarios :
56
59
name : ${{ matrix.try-scenario }}
@@ -79,29 +82,16 @@ jobs:
79
82
80
83
steps :
81
84
- name : Checkout
82
- uses : actions/checkout@v3
83
- - name : Use Volta
84
- uses : volta-cli/action@v4
85
- - name : Stash package-lock.json for cache key
86
- run : cp package-lock.json __cache-key
87
- - name : Node Modules Cache
88
- id : cache-npm
89
- uses : actions/cache@v3
85
+ uses : actions/checkout@v4
86
+ - uses : pnpm/action-setup@v3
90
87
with :
91
- path : |
92
- .npm
93
- node_modules/
94
- package.json
95
- package-lock.json
96
- __env
97
- key : ci-npm-v3-${{ matrix.try-scenario }}-${{ hashFiles('config/ember-try.js', '__cache-key') }}
98
- restore-keys : |
99
- ci-npm-${{ hashFiles('package-lock.json') }}
88
+ version : 8
89
+ - name : Install Node
90
+ uses : actions/setup-node@v4
91
+ with :
92
+ node-version : 18
93
+ cache : pnpm
100
94
- name : Install Dependencies
101
- if : steps.cache-npm.outputs.cache-hit != 'true'
102
- run : npm ci --cache .npm
95
+ run : pnpm i --frozen-lockfile
103
96
- name : Ember-Try Setup
104
- if : steps.cache-npm.outputs.cache-hit != 'true'
105
- run : node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup --- bin/stash-env.sh
106
- - name : Run Tests
107
- run : . bin/restore-env.sh && CI=true node_modules/.bin/ember test
97
+ run : pnpm ember try:one ${{ matrix.try-scenario }}
0 commit comments