Skip to content

Commit

Permalink
CI clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoscout committed Dec 20, 2023
1 parent e8dafe2 commit 782a84d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,26 @@ jobs:
toolchain: stable
override: true

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: rustfmt
run: |
cargo fmt --all --check
- name: Build and Test
- name: clippy
run: |
cargo clippy --all-features --all-targets -- -D warnings
- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 782a84d

Please sign in to comment.