From ef2c74be712ffced3110ee249bd0916a92f25e81 Mon Sep 17 00:00:00 2001 From: Bogdan Opanchuk Date: Mon, 24 Jan 2022 21:34:27 -0800 Subject: [PATCH] Add a CI step for running WASM tests --- .github/workflows/nucypher-core.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/nucypher-core.yml b/.github/workflows/nucypher-core.yml index 894471e3..fa24bd81 100644 --- a/.github/workflows/nucypher-core.yml +++ b/.github/workflows/nucypher-core.yml @@ -43,6 +43,27 @@ jobs: - run: cargo check --all-features - run: cargo test --release --all-features + wasm-test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.56.0 # MSRV + - stable + target: + - wasm32-unknown-unknown + + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + target: ${{ matrix.target }} + override: true + - run: cargo install wasm-pack + - run: wasm-pack test --node + trigger-wheels: runs-on: ubuntu-latest needs: test