Skip to content

Commit af2ce36

Browse files
committed
Add linters to our CI.
1 parent 90b7523 commit af2ce36

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: CI
22

33
on:
4-
push:
5-
pull_request:
4+
[push, pull_request, workflow_dispatch]
65

76
jobs:
87
test:

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint
2+
3+
on:
4+
[push, pull_request, workflow_dispatch]
5+
6+
jobs:
7+
lint:
8+
name: Lint
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
submodules: recursive
14+
- uses: dtolnay/rust-toolchain@master
15+
with:
16+
toolchain: nightly
17+
components: rustfmt, clippy
18+
- run: cargo check
19+
- run: cargo fmt -- --check
20+
- run: RUSTFLAGS="--deny warnings" cargo build
21+
- run: cargo clippy --all-features -- --deny warnings

0 commit comments

Comments
 (0)