Skip to content

Commit 1158c18

Browse files
committed
Add clippy_dev checks to GitHub Actions
1 parent 2f8ef89 commit 1158c18

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/clippy_dev.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Clippy Dev Test
2+
3+
on:
4+
# Only run on paths, that get checked by the clippy_dev tool
5+
push:
6+
paths:
7+
- 'CAHNGELOG.md'
8+
- 'README.md'
9+
- '**.stderr'
10+
- '**.rs'
11+
pull_request:
12+
paths:
13+
- 'CAHNGELOG.md'
14+
- 'README.md'
15+
- '**.stderr'
16+
- '**.rs'
17+
18+
env:
19+
RUST_BACKTRACE: 1
20+
21+
jobs:
22+
clippy_dev:
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: rust-toolchain
27+
uses: actions-rs/[email protected]
28+
with:
29+
toolchain: nightly
30+
target: x86_64-unknown-linux-gnu
31+
profile: minimal
32+
components: rustfmt
33+
- name: Checkout
34+
uses: actions/[email protected]
35+
36+
- name: Build
37+
run: cargo build --features deny-warnings
38+
working-directory: clippy_dev
39+
- name: Test limit-stderr-length
40+
run: cargo dev --limit-stderr-length
41+
- name: Test update_lints
42+
run: cargo dev update_lints --check
43+
- name: Test fmt
44+
run: cargo dev fmt --check

0 commit comments

Comments
 (0)