Skip to content

Merge pull request #322 from paulcacheux/dependabot/cargo/serde-1.0.209 #770

Merge pull request #322 from paulcacheux/dependabot/cargo/serde-1.0.209

Merge pull request #322 from paulcacheux/dependabot/cargo/serde-1.0.209 #770

Workflow file for this run

on: push
name: Lint
jobs:
check:
name: Lint source code
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Cache rust artifacts
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}-{{ hashFiles('rust-toolchain.toml') }}-v5
- name: Run cargo fmt
run: |
cargo fmt --all -- --check
- name: Run clippy
run: |
cargo clippy -- -D warnings