Skip to content

Merge pull request #474 from LilyFirefly/renovate/codspeedhq-action-4.x #942

Merge pull request #474 from LilyFirefly/renovate/codspeedhq-action-4.x

Merge pull request #474 from LilyFirefly/renovate/codspeedhq-action-4.x #942

Workflow file for this run

name: Lint checks
on:
push:
branches: main
pull_request:
permissions: {}
# Make sure CI fails on all warnings, including Clippy lints
env:
RUSTFLAGS: "-Dwarnings"
# Cancel running jobs for the same workflow and branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run Clippy
run: cargo clippy --all-targets --all-features
cargo-shear:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: cargo-bins/cargo-binstall@e00d2c94cc0067b77737821097a62d91c0301baa # v1.21.1
- run: cargo binstall --no-confirm cargo-shear
- run: cargo shear
cargo-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run Cargo fmt
run: cargo fmt --check