From 42680164ea6821683dea723cd2b505bc4e9035cf Mon Sep 17 00:00:00 2001 From: Benjamin Kampmann Date: Thu, 25 Nov 2021 15:49:20 +0100 Subject: [PATCH] fix up CI test --- .github/workflows/ci.yml | 16 +++++++++++----- .../examples/wasm_command_bot/Cargo.toml | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5da9c528..39af6ea89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,16 +117,22 @@ jobs: - name: Install wasm-pack run: cargo install wasm-pack - - name: Unit tests + - name: Checking base run: | cd crates/matrix-sdk-base/ - wasm-pack test --node - wasm-pack test --firefox --headless --features indexeddb_state_store + wasm-pack test --node --features indexeddb_state_store,indexeddb_cryptostore + wasm-pack test --firefox --headless -- --features indexeddb_state_store,indexeddb_cryptostore - - name: Check + - name: Checking cryptostore + run: | + cd crates/matrix-sdk-base/ + wasm-pack test --node -- --features indexeddb_cryptostore + wasm-pack test --firefox --headless -- --features indexeddb_cryptostore + + - name: Checking example run: | cd crates/matrix-sdk/examples/wasm_command_bot - cargo check --target wasm32-unknown-unknown + npm install && npm test test-appservice: name: ${{ matrix.name }} diff --git a/crates/matrix-sdk/examples/wasm_command_bot/Cargo.toml b/crates/matrix-sdk/examples/wasm_command_bot/Cargo.toml index 1c22b6f4c..57fab5fb8 100644 --- a/crates/matrix-sdk/examples/wasm_command_bot/Cargo.toml +++ b/crates/matrix-sdk/examples/wasm_command_bot/Cargo.toml @@ -19,6 +19,6 @@ web-sys = { version = "0.3.51", features = ["console"] } [dependencies.matrix-sdk] path = "../.." default-features = false -features = ["native-tls", "encryption", "indexeddb_store"] +features = ["native-tls", "encryption", "indexeddb_state_store", "indexeddb_cryptostore"] [workspace]