fix: ensure special cases evaluate only for exact inputs #229
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: autofix.ci | |
| on: | |
| workflow_call: | |
| pull_request: | |
| push: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| env: | |
| rust_clippy: stable | |
| RUSTFLAGS: "-Dwarnings" | |
| jobs: | |
| autofix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/cache@v6 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: autofix-${{ hashFiles('**/Cargo.lock') }} | |
| - run: rustup toolchain install ${{ env.rust_clippy }} --profile minimal --component rustfmt --component clippy | |
| - run: rustup default ${{ env.rust_clippy }} | |
| - run: cargo clippy --fix --workspace --all-targets | |
| - run: cargo fmt --all | |
| - name: Verify nothing is left for clippy to complain about | |
| run: cargo clippy --workspace --all-targets | |
| - uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a |