Skip to content

Commit ba12cb5

Browse files
jo-gorombrubeck
authored andcommitted
Adds clippy and fmt check to CI
1 parent ed9dcd4 commit ba12cb5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,29 @@ jobs:
2222
toolchain: ${{ matrix.rust }}
2323
override: true
2424

25+
- name: Install rustfmt + clippy
26+
if: matrix.rust == 'stable'
27+
uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: ${{ matrix.rust }}
31+
override: true
32+
components: rustfmt, clippy
33+
34+
- name: Check Fmt
35+
if: matrix.rust == 'stable'
36+
uses: actions-rs/cargo@v1
37+
with:
38+
command: fmt
39+
args: -- --check
40+
41+
- name: Check Lints (all features)
42+
if: matrix.rust == 'stable'
43+
uses: actions-rs/cargo@v1
44+
with:
45+
command: clippy
46+
args: --tests --all-features
47+
2548
- name: Test (default features)
2649
uses: actions-rs/cargo@v1
2750
with:

0 commit comments

Comments
 (0)