1name: "Run tests"
2description: "Runs the tests"
3
4runs:
5 using: "composite"
6 steps:
7 - name: Install nextest
8 uses: taiki-e/install-action@nextest
9
10 - name: Install Node
11 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
12 with:
13 node-version: "18"
14
15 - name: Limit target directory size
16 env:
17 MAX_SIZE: ${{ runner.os == 'macOS' && 300 || 100 }}
18 shell: bash -euxo pipefail {0}
19 # Use the variable in the run command
20 run: script/clear-target-dir-if-larger-than ${{ env.MAX_SIZE }}
21
22 - name: Run tests
23 shell: bash -euxo pipefail {0}
24 run: cargo nextest run --workspace --no-fail-fast --failure-output immediate-final