From 085b4672b13bf77328031b9ad8aa0551b5698792 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Tue, 7 Nov 2023 12:30:19 +0100 Subject: [PATCH] Add CI for wasm --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88ba5a65..ba1caeb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,3 +60,18 @@ jobs: - name: Run tests no features run: cargo test --no-default-features + + wasm: + name: Run tests in wasm + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + targets: wasm32-unknown-unknown + - name: Run tests default features + run: cargo test --target wasm32-unknown-unknown + + - name: Run tests no features + run: cargo test --no-default-features --target wasm32-unknown-unknown