Skip to content

Commit

Permalink
chore: unused features CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Smith committed Dec 9, 2024
1 parent fe85193 commit 0607d07
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,36 @@ jobs:
- beta
- nightly
steps:
- uses: actions/checkout@v4
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo test --workspace --all-features --all-targets
- run: cargo test --workspace --all-features --doc
- uses: actions/checkout@v4
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo test --workspace --all-features --all-targets
- run: cargo test --workspace --all-features --doc

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo clippy --all-targets --all-features -- -D warnings
- uses: actions/checkout@v4
- run: cargo clippy --all-targets --all-features -- -D warnings

fmt:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo fmt --all -- --check
- uses: actions/checkout@v4
- run: cargo fmt --all -- --check

unused-features:
name: Unused features
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo install cargo-unused-features
- run: unused-features analyze
- run: git diff
- run: if [ -n "$(git diff)" ]; then exit 1; fi

# `git diff bytecode` shows changes but I'm not sure why. Disabling for now
# verify-bytecode:
Expand Down

0 comments on commit 0607d07

Please sign in to comment.