Merge pull request #177 from Alzymologist/dependabot/github_actions/S… #329
This file contains 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: Rust clippy | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- stable | |
jobs: | |
linter: | |
name: Cargo clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.12.1 | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout sources | |
uses: actions/checkout@v4.2.2 | |
with: | |
fetch-depth: 50 | |
submodules: 'recursive' | |
- name: Install Rust stable toolchain | |
uses: actions-rs/toolchain@v1.0.7 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2.7.5 | |
- name: cargo clippy | |
run: cargo clippy --all-targets -- -D warnings |