Skip to content

Commit

Permalink
add cargo-careful check
Browse files Browse the repository at this point in the history
  • Loading branch information
nwagner84 committed Feb 1, 2024
1 parent aafbbfe commit 46c0c91
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,28 @@ 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
- run: |
make careful
# udeps:
# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -323,6 +345,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 46c0c91

Please sign in to comment.