From 7df36e3d49439d64b529e896995145ee0ca4f2e5 Mon Sep 17 00:00:00 2001 From: Benjamin Kampmann Date: Thu, 18 Nov 2021 13:37:11 +0100 Subject: [PATCH] first attempt at creating a CI job for wasm tests --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7644d1c40..d5da9c528 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,6 +114,15 @@ jobs: - name: Install emscripten uses: mymindstorm/setup-emsdk@v7 + - name: Install wasm-pack + run: cargo install wasm-pack + + - name: Unit tests + run: | + cd crates/matrix-sdk-base/ + wasm-pack test --node + wasm-pack test --firefox --headless --features indexeddb_state_store + - name: Check run: | cd crates/matrix-sdk/examples/wasm_command_bot