Skip to content

Commit 3848073

Browse files
fixup-matrix
1 parent 7e6c391 commit 3848073

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ on:
1212
workflow_dispatch:
1313

1414
jobs:
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)"
@@ -76,14 +76,6 @@ jobs:
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

0 commit comments

Comments
 (0)