Skip to content

Commit

Permalink
add npm test to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 7, 2023
1 parent e485713 commit 0ef55ae
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@ jobs:
with:
path: |
./target
~/.cargo
~/.cargo
key: debug-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
debug-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-
debug-${{ runner.os }}-
- name: Run tests
run: cargo test --verbose
run: cargo test --verbose
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: wasm-pack build --target nodejs
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: npm test

0 comments on commit 0ef55ae

Please sign in to comment.