Skip to content

Commit

Permalink
Add wasm workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SHAcollision committed Jan 21, 2025
1 parent ccbf315 commit 9c62f04
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/rust.yml → .github/workflows/native.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Rust (native)

on:
push:
Expand All @@ -15,9 +15,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run Native tests
run: cargo test --verbose
- name: Run Wasm tests
run: wasm-pack test --headless --firefox
- name: Build
run: cargo build --verbose
23 changes: 23 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Rust (Wasm-Pack)

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
wasm-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install Wasm-Pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install Firefox
run: sudo apt-get install -y firefox
- name: Run Wasm-Pack Tests
run: wasm-pack test --headless --firefox

0 comments on commit 9c62f04

Please sign in to comment.