Skip to content

Commit ad6ebb2

Browse files
committed
ci: add lint workflow
1 parent e39ebed commit ad6ebb2

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
codestyle:
13+
name: Codestyle
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: dtolnay/rust-toolchain@stable
19+
with:
20+
components: clippy, rustfmt
21+
- uses: Swatinem/rust-cache@v2
22+
- run: cargo check
23+
env:
24+
RUSTFLAGS: '-D unused'
25+
- run: cargo clippy -- -D clippy::all
26+
- run: cargo fmt --check

0 commit comments

Comments
 (0)