Skip to content

Commit

Permalink
add cargo-careful check (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwagner84 authored Feb 1, 2024
1 parent 9b65534 commit 0f7ab42
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -323,6 +347,7 @@ jobs:
needs:
- audit
- book
- careful
- check
- clippy
- cross
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0f7ab42

Please sign in to comment.