File tree Expand file tree Collapse file tree 1 file changed +14
-22
lines changed Expand file tree Collapse file tree 1 file changed +14
-22
lines changed Original file line number Diff line number Diff line change 1212 workflow_dispatch :
1313
1414jobs :
15- setup-rust :
15+ unit-test :
1616 runs-on : ubuntu-latest
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ node-version : [18.x, 20.x]
21+
1722 steps :
1823 - uses : actions/checkout@v4
1924 with :
@@ -43,24 +48,19 @@ jobs:
4348 cargo install wasm-pack --version 0.13.1
4449 cargo install wasm-opt --version 0.116.1
4550
46- unit-test :
47- needs : setup-rust
48- runs-on : ubuntu-latest
49- strategy :
50- fail-fast : false
51- matrix :
52- node-version : [18.x, 20.x]
53-
54- steps :
55- - uses : actions/checkout@v4
56- with :
57- ref : ${{ github.event.pull_request.head.sha }}
58-
5951 - name : Setup node ${{ matrix.node-version }}
6052 uses : actions/setup-node@v3
6153 with :
6254 node-version : ${{ matrix.node-version }}
6355
56+ - name : Cache npm packages
57+ uses : actions/cache@v3
58+ with :
59+ path : ~/.npm
60+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
61+ restore-keys : |
62+ ${{ runner.os }}-node-
63+
6464 - name : Build Info
6565 run : |
6666 echo "node $(node --version)"
7676 run : |
7777 git fetch origin $GITHUB_BASE_REF
7878
79- - name : Cache npm packages
80- uses : actions/cache@v3
81- with :
82- path : ~/.npm
83- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
84- restore-keys : |
85- ${{ runner.os }}-node-
86-
8779 - name : Install Packages
8880 run : npm ci --workspaces --include-workspace-root
8981
You can’t perform that action at this time.
0 commit comments