From 0f7ab420800e9bf4977f58ad987a00ee24746dae Mon Sep 17 00:00:00 2001 From: Nico Wagner Date: Thu, 1 Feb 2024 12:40:08 +0100 Subject: [PATCH] add `cargo-careful` check (#754) --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ Makefile | 3 +++ 2 files changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1f264e18..14be35e7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -190,6 +190,30 @@ jobs: - run: | make clippy + careful: + runs-on: ubuntu-latest + needs: test + steps: + - uses: actions/checkout@v4 + - uses: abbbi/github-actions-tune@v1 + - uses: actions/cache@v4 + with: + key: ${{ env.CACHE_KEY }}-${{ hashFiles('**/Cargo.toml') }} + path: | + ~/.cargo/bin/ + ~/.cargo/git/db/ + ~/.cargo/registry/cache/ + ~/.cargo/registry/index/ + target/ + - uses: dtolnay/rust-toolchain@nightly + - name: "Install `cargo-careful`" + run: | + cargo install -f cargo-careful + - name: "Run prepare tests" + run: ci/prepare-tests.sh + - run: | + make careful + # udeps: # if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} # runs-on: ubuntu-latest @@ -323,6 +347,7 @@ jobs: needs: - audit - book + - careful - check - clippy - cross diff --git a/Makefile b/Makefile index 880a47c3a..038258da1 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,9 @@ clippy: test: $(CARGO) test --workspace --all-features --no-fail-fast +careful: + $(CARGO) +nightly careful test --workspace --all-features + fmt: $(CARGO) fmt --all -- --check