Skip to content

Commit 69b95c7

Browse files
authored
ci: fix was tests in CI (#361)
doc tests don't work under wasi
1 parent 99ffea6 commit 69b95c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@ jobs:
4646
target: aarch64-apple-darwin
4747
include:
4848
- rust-version: "nightly"
49+
test-flags: --tests
4950
platform:
5051
name: "WASI P1"
5152
os: ubuntu-latest
5253
target: wasm32-wasip1
5354
- rust-version: "nightly"
55+
test-flags: --tests
5456
platform:
5557
name: "WASI P2"
5658
os: ubuntu-latest
@@ -76,7 +78,7 @@ jobs:
7678
- name: Build
7779
run: cargo build --target ${{ matrix.platform.target }} ${{ matrix.rust-version == 'nightly' && '--features nightly' || '' }}
7880
- name: Test
79-
run: cargo test --target ${{ matrix.platform.target }} ${{ matrix.rust-version == 'nightly' && '--features nightly' || '' }}
81+
run: cargo test --target ${{ matrix.platform.target }} ${{ matrix.rust-version == 'nightly' && '--features nightly' || '' }} ${{ matrix.test-flags }}
8082
wasm:
8183
name: WASM Test Build
8284
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)