Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint and format check

on: [ pull_request ]

permissions:
contents: read

env:
RUSTFLAGS: "-Dwarnings" # treat warnings as errors

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository.
uses: actions/checkout@v6

- name: Run Clippy.
run: cargo clippy --all-targets --all-features

- name: Run fmt check.
run: cargo fmt --all -- --check
Loading