Skip to content

Commit 782a84d

Browse files
committed
CI clippy
1 parent e8dafe2 commit 782a84d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build_and_test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,26 @@ jobs:
2727
toolchain: stable
2828
override: true
2929

30-
- name: Install cargo-llvm-cov
31-
uses: taiki-e/install-action@cargo-llvm-cov
30+
- name: rustfmt
31+
run: |
32+
cargo fmt --all --check
3233
33-
- name: Build and Test
34+
- name: clippy
35+
run: |
36+
cargo clippy --all-features --all-targets -- -D warnings
37+
38+
- name: Build
3439
run: cargo build --verbose
3540

3641
- name: Run tests
3742
run: cargo test --verbose
3843

44+
- name: Install cargo-llvm-cov
45+
uses: taiki-e/install-action@cargo-llvm-cov
46+
3947
- name: Generate code coverage
4048
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
49+
4150
- name: Upload coverage to Codecov
4251
uses: codecov/codecov-action@v3
4352
with:

0 commit comments

Comments
 (0)