Skip to content

Commit 1f660ca

Browse files
JPHutchinsnickbeth
authored andcommitted
github: workflows: lint: rustfmt + clippy
1 parent 761d61e commit 1f660ca

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
rustfmt:
13+
name: Check Rust formatting
14+
runs-on: ubuntu-latest # OK to run from Linux since it doesn't need to build the code
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- run: cargo fmt --all --check
20+
21+
clippy:
22+
name: Check Clippy
23+
runs-on: windows-latest # required to build on Windows due to Windows-only dependencies
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- run: cargo clippy --all-features

0 commit comments

Comments
 (0)