File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,21 @@ jobs:
28
28
registry-url : ' https://registry.npmjs.org'
29
29
cache : ' npm'
30
30
31
+ - name : Use the `stable` engine
32
+ run : |
33
+ node ./scripts/swap-engines.js
34
+
31
35
- name : Cache node_modules
32
36
uses : actions/cache@v3
33
37
with :
34
38
path : node_modules
35
39
key : ${{ runner.os }}-${{ matrix.node-version }}-node_modules-${{ hashFiles('**/package-lock.json') }}
36
40
37
- # Cargo already skips downloading dependencies if they already exist
38
- - name : Cache cargo
41
+ - name : Cache node_modules
39
42
uses : actions/cache@v3
40
43
with :
41
- path : |
42
- ~/.cargo/bin/
43
- ~/.cargo/registry/index/
44
- ~/.cargo/registry/cache/
45
- ~/.cargo/git/db/
46
- target/
47
- key : ${{ runner.os }}-cargo-${{ hashFiles('./oxide/**/Cargo.lock') }}
44
+ path : node_modules
45
+ key : ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ env.CACHE_PREFIX }}-node_modules-${{ hashFiles('**/package-lock.json') }}
48
46
49
47
- name : Install dependencies
50
48
run : npm install
53
51
run : npm run build
54
52
55
53
- name : Test
56
- run : npm test
54
+ run : npm run test
57
55
58
56
- name : Calculate environment variables
59
57
run : |
You can’t perform that action at this time.
0 commit comments