From f58d96b3deb573961af79812e478f35211f316bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Mon, 14 Oct 2024 23:28:12 +0200 Subject: [PATCH] CI: run all tests in CI some cleanups to the various arguments --- .github/workflows/rust.yml | 12 ++---------- Justfile | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6ea3b6c..51116a0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/Justfile b/Justfile index 4297c34..9663de0 100644 --- a/Justfile +++ b/Justfile @@ -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.