Skip to content

Commit

Permalink
CI: run all tests in CI
Browse files Browse the repository at this point in the history
some cleanups to the various arguments
  • Loading branch information
kleinesfilmroellchen committed Oct 14, 2024
1 parent 01d1a5f commit f58d96b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,10 @@ jobs:
- name: Install nextest
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

# The binary build adds > 40 dependencies, so we would like to avoid it, but some integration tests depend on it.
# Therefore, we first run a faster build that will report almost all errors immediately and cancel the CI run.
- name: Build
run: cargo build --verbose --no-default-features
# After that, we build the remaining crates and binaries...
- name: Build binaries
run: cargo build --verbose --no-default-features --features binaries
# ... and run the tests.
run: cargo build --workspace --verbose
- name: Run tests
run: cargo nextest run --verbose --no-default-features --features binaries --config-file .github/nextest-ci.toml
- name: Build sals
run: cd sals && cargo build --verbose
run: cargo nextest run --workspace --verbose --config-file .github/nextest-ci.toml

clippy:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set windows-shell := ["pwsh.exe", "-NoLogo", "-Command"]

# Build all Rust binaries and run all tests
test: build
cargo nextest run --all
cargo nextest run --workspace

coverage:
# The first two commands are expected to fail, since "run" is just a hack to get llvm-cov to compile the binaries.
Expand Down

0 comments on commit f58d96b

Please sign in to comment.