Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
ci(test): run wasm tests
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Mar 19, 2024
1 parent f3b33ee commit 8def6bb
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Rust setup
uses: dtolnay/rust-toolchain@stable
Expand All @@ -35,18 +35,25 @@ jobs:
- name: Lint - clippy
run: cargo clippy --all --no-deps -- -D warnings

- uses: taiki-e/install-action@v2
with:
tool: wasm-pack@${{ env.WASM_PACK_VERSION }}
- name: Setup chromedriver
uses: nanasess/setup-chromedriver@v2

- name: Run wasm tests (Chrome)
run: wasm-pack test --chromedriver "$(which chromedriver)" --chrome --headless

- name: Setup NodeJS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
registry-url: https://registry.npmjs.org/

- uses: taiki-e/install-action@v2
with:
tool: wasm-pack@${{ env.WASM_PACK_VERSION }}
- name: Install NPM dependencies
run: npm ci

- name: Build
run: npm run build

0 comments on commit 8def6bb

Please sign in to comment.