1name: 'Run tests'
2description: 'Runs the tests'
3
4runs:
5 using: "composite"
6 steps:
7 - name: Install Rust
8 shell: bash -euxo pipefail {0}
9 run: |
10 rustup set profile minimal
11 rustup update stable
12 rustup target add wasm32-wasi
13 cargo install cargo-nextest
14
15 - name: Install Node
16 uses: actions/setup-node@v3
17 with:
18 node-version: "18"
19
20 - name: Limit target directory size
21 shell: bash -euxo pipefail {0}
22 run: script/clear-target-dir-if-larger-than 70
23
24 - name: Run check
25 env:
26 RUSTFLAGS: -D warnings
27 shell: bash -euxo pipefail {0}
28 run: cargo check --tests --workspace
29
30 - name: Run tests
31 env:
32 RUSTFLAGS: -D warnings
33 shell: bash -euxo pipefail {0}
34 run: cargo nextest run --workspace --no-fail-fast
35
36 - name: Build collab
37 shell: bash -euxo pipefail {0}
38 run: cargo build -p collab
39
40 - name: Build other binaries
41 shell: bash -euxo pipefail {0}
42 run: cargo build --workspace --bins --all-features