Fix tests in release build
This commit is contained in:
parent
94c9c61780
commit
d106d36dbb
1 changed files with 7 additions and 1 deletions
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
@ -28,7 +28,9 @@ jobs:
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
- name: Run cargo test
|
- 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:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
|
@ -46,6 +48,7 @@ jobs:
|
||||||
- name: Install stable toolchain
|
- name: Install stable toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
|
targets: wasm32-unknown-unknown
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
|
|
||||||
- name: Run cargo check
|
- name: Run cargo check
|
||||||
|
@ -57,6 +60,9 @@ jobs:
|
||||||
- name: Run cargo clippy
|
- name: Run cargo clippy
|
||||||
run: cargo clippy -- -W warnings
|
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:
|
build:
|
||||||
name: Build ${{ matrix.arch }}
|
name: Build ${{ matrix.arch }}
|
||||||
needs: [test, lint]
|
needs: [test, lint]
|
||||||
|
|
Loading…
Reference in a new issue