action.yml

 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 100
23
24    - name: Run check
25      shell: bash -euxo pipefail {0}
26      run: cargo check --tests --workspace
27
28    - name: Run tests
29      shell: bash -euxo pipefail {0}
30      run: cargo nextest run --workspace --no-fail-fast