Skip to content

Commit 22bccaa

Browse files
authored
Add lint and format check GHA workflow (#83)
1 parent 7a1eabd commit 22bccaa

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lint and format check
2+
3+
on: [ pull_request ]
4+
5+
permissions:
6+
contents: read
7+
8+
env:
9+
RUSTFLAGS: "-Dwarnings" # treat warnings as errors
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository.
17+
uses: actions/checkout@v6
18+
19+
- name: Run Clippy.
20+
run: cargo clippy --all-targets --all-features
21+
22+
- name: Run fmt check.
23+
run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)