Skip to content

Commit 9a51ba0

Browse files
Turbo87Mark-Simulacrum
authored andcommitted
CI: Add lint job
1 parent fa3a3c4 commit 9a51ba0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ env:
1010
RUST_VERSION: 1.75.0
1111

1212
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
17+
18+
- run: rustup override set ${{ env.RUST_VERSION }}
19+
- run: rustup component add clippy
20+
- run: rustup component add rustfmt
21+
- uses: Swatinem/rust-cache@a22603398250b864f7190077025cf752307154dc # v2.7.2
22+
23+
- run: cargo clippy --workspace -- -D warnings
24+
- run: cargo fmt --check --all
25+
1326
build:
1427
runs-on: ubuntu-latest
1528
steps:

0 commit comments

Comments
 (0)