Skip to content

ci: bump github/codeql-action from 4.36.0 to 4.36.2 (#632) #1696

ci: bump github/codeql-action from 4.36.0 to 4.36.2 (#632)

ci: bump github/codeql-action from 4.36.0 to 4.36.2 (#632) #1696

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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install toolchain
run: rustup toolchain install stable && rustup component add rustfmt && rustup component add 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