Skip to content

ci: bump EmbarkStudios/cargo-deny-action from 2.0.14 to 2.0.15 (#585) #1527

ci: bump EmbarkStudios/cargo-deny-action from 2.0.14 to 2.0.15 (#585)

ci: bump EmbarkStudios/cargo-deny-action from 2.0.14 to 2.0.15 (#585) #1527

Workflow file for this run

on: [push, pull_request]
name: Lints
permissions:
contents: read
# We don't need to run older workflows for the same PR's, since we always want the output of the newest ones.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lints:
name: rustfmt and clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
persist-credentials: false
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9
with:
toolchain: stable
components: rustfmt, clippy
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy -- -D warnings
- name: Run cargo clippy on tests
run: cargo clippy --tests -- -D warnings