2023-11-18 02:27:11 +00:00
|
|
|
name: "Run tests"
|
|
|
|
description: "Runs the tests"
|
2023-11-17 22:07:51 +00:00
|
|
|
|
|
|
|
runs:
|
2024-01-11 12:01:42 +00:00
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Install Rust
|
|
|
|
shell: bash -euxo pipefail {0}
|
|
|
|
run: |
|
|
|
|
cargo install cargo-nextest
|
2023-11-17 22:07:51 +00:00
|
|
|
|
2024-01-11 12:01:42 +00:00
|
|
|
- name: Install Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: "18"
|
2023-11-17 22:07:51 +00:00
|
|
|
|
2024-01-11 12:01:42 +00:00
|
|
|
- name: Limit target directory size
|
|
|
|
shell: bash -euxo pipefail {0}
|
|
|
|
run: script/clear-target-dir-if-larger-than 100
|
2023-11-17 22:07:51 +00:00
|
|
|
|
2024-01-11 12:01:42 +00:00
|
|
|
- name: Run check
|
|
|
|
shell: bash -euxo pipefail {0}
|
|
|
|
run: cargo check --tests --workspace
|
2023-11-17 22:07:51 +00:00
|
|
|
|
2024-01-11 12:01:42 +00:00
|
|
|
- name: Run tests
|
|
|
|
shell: bash -euxo pipefail {0}
|
|
|
|
run: cargo nextest run --workspace --no-fail-fast
|