Skip to content

Commit

Permalink
Add a clippy CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
davisp committed Mar 18, 2024
1 parent e0983ec commit 258ed9a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/clippy-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
workflow_call:
workflow_dispatch:

push:
branches:
- main
- refs/tags/*
pull_request:
branches:
- '*' # must quote since "*" is a YAML reserved character; we want a string

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

name: Clippy check

# Make sure CI fails on all warnings, including Clippy lints
env:
RUSTFLAGS: "-Dwarnings"

jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Clippy
run: cargo clippy --all-targets --all-features

0 comments on commit 258ed9a

Please sign in to comment.