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 cargo install cargo-nextest --locked
11
12 - name: Install Node
13 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
14 with:
15 node-version: "18"
16
17 - name: Limit target directory size
18 env:
19 MAX_SIZE: ${{ runner.os == 'macOS' && 300 || 100 }}
20 shell: bash -euxo pipefail {0}
21 # Use the variable in the run command
22 run: script/clear-target-dir-if-larger-than ${{ env.MAX_SIZE }}
23
24 - name: Run tests
25 shell: bash -euxo pipefail {0}
26 run: cargo nextest run --workspace --no-fail-fast --failure-output immediate-final