Skip to content

Commit

Permalink
Test Node on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Oct 25, 2024
1 parent 1753948 commit ee488fb
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ jobs:
uses: actions/checkout@v4

- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
targets: wasm32-unknown-unknown
toolchain: stable
target: wasm32-unknown-unknown

- name: Install Node 23
uses: actions/setup-node@v4
with:
node-version: 23

- name: Run cargo check
run: cargo check --target=wasm32-unknown-unknown
Expand All @@ -22,6 +28,9 @@ jobs:
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Test on Node
run: wasm-pack test --node

- name: Test on Chrome
run: wasm-pack test --headless --chrome

Expand All @@ -36,9 +45,10 @@ jobs:
uses: actions/checkout@v4

- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
targets: wasm32-unknown-unknown
toolchain: stable
target: wasm32-unknown-unknown
components: rustfmt, clippy

- name: Run cargo fmt
Expand Down

0 comments on commit ee488fb

Please sign in to comment.