-
Notifications
You must be signed in to change notification settings - Fork 12
33 lines (31 loc) · 1.04 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
on: [push, pull_request]
name: CI
jobs:
run-ci:
name: Run CI
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
additional_test_flags: ""
- os: windows-latest
additional_test_flags: "--no-default-features"
- os: macos-latest
additional_test_flags: "--no-default-features"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: "wasm32-wasi"
# We have to run these separately so we can deactivate a feature for one of the tests
- name: Run client tests
working-directory: ./crates/wasm-pkg-client
run: cargo test ${{ matrix.additional_test_flags }}
- name: Run wkg tests
working-directory: ./crates/wkg
run: cargo test ${{ matrix.additional_test_flags }}
- name: Run other tests
run: cargo test --workspace --exclude wasm-pkg-client --exclude wkg
- name: Run cargo clippy
run: cargo clippy --all --workspace