# needed to securely identify the workflow name: autofix.ci on: pull_request: branches: - main merge_group: branches: - main concurrency: group: ${{ github.workflow }}-${{ github.event.number || github.ref }} cancel-in-progress: true permissions: contents: read env: CARGO_TERM_COLOR: always CARGO_INCREMENTAL: 0 jobs: code: name: 🤖 Autofix code runs-on: ubuntu-24.04 timeout-minutes: 20 steps: - uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: 🦀 Install the toolchain run: rustup toolchain install - uses: Swatinem/rust-cache@v2.9.3 with: save-if: false - name: 🔠 Apply clippy's suggestions run: cargo clippy --workspace --all-targets --locked --fix --allow-dirty --allow-staged - name: 🎨 Format run: cargo fmt --all - uses: autofix-ci/action@v1.3.4