@@ -19,38 +19,41 @@ jobs:
1919
2020 steps :
2121 - 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
2824 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 : 16
30+ cache : pnpm
3331 - name : Install Dependencies
34- if : steps.cache-npm.outputs.cache-hit != 'true'
35- run : npm ci --cache .npm
32+ run : pnpm i --frozen-lockfile
3633 - name : Lint
3734 run : npm run lint
3835 - name : Run Tests
39- run : . bin/restore-env.sh && node_modules/.bin/ ember test
36+ run : pnpm ember test
4037
4138 floating :
4239 name : " Floating Dependencies"
4340 runs-on : ubuntu-latest
4441 timeout-minutes : 8
4542
4643 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 : 16
52+ cache : pnpm
5053 - name : Install Dependencies
51- run : npm i --cache .npm
54+ run : pnpm install --no-lockfile
5255 - name : Run Tests
53- run : CI=true node_modules/.bin/ ember test
56+ run : CI=true pnpm ember test
5457
5558 try-scenarios :
5659 name : ${{ matrix.try-scenario }}
@@ -79,29 +82,16 @@ jobs:
7982
8083 steps :
8184 - 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
9087 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 : 16
93+ cache : pnpm
10094 - name : Install Dependencies
101- if : steps.cache-npm.outputs.cache-hit != 'true'
102- run : npm ci --cache .npm
95+ run : pnpm i --frozen-lockfile
10396 - 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