From d106d36dbbd941a9d9ea264c6c1d2239d1868500 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sat, 1 Apr 2023 00:26:18 +0100 Subject: [PATCH] Fix tests in release build --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dbdf6277..97df9a4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,9 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: Run cargo test - run: cargo test --workspace + run: | + (&>/dev/null cargo run --no-default-features -F storage-mem -- start --log trace --user root --pass root memory &) + cargo test --workspace --features protocol-ws,protocol-http,kv-rocksdb lint: name: Lint @@ -46,6 +48,7 @@ jobs: - name: Install stable toolchain uses: dtolnay/rust-toolchain@stable with: + targets: wasm32-unknown-unknown components: rustfmt, clippy - name: Run cargo check @@ -57,6 +60,9 @@ jobs: - name: Run cargo clippy run: cargo clippy -- -W warnings + - name: Run WebAssembly check + run: cargo check --features kv-mem,kv-indxdb,protocol-ws,protocol-http --target wasm32-unknown-unknown --package surrealdb + build: name: Build ${{ matrix.arch }} needs: [test, lint]