Skip to content

Commit

Permalink
Hopefully fix code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstaro committed Jun 2, 2024
1 parent 352becf commit 600619f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v4
- run: cargo build --all
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings
- run: cargo test --all
- run: |
cargo install cargo-tarpaulin
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)

- run: cargo install cargo-tarpaulin
if: matrix.os == 'ubuntu-latest'
- run: cargo tarpaulin --out xml
if: matrix.os == 'ubuntu-latest'
- name: Upload coverage report to codecov.io
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
if: matrix.os == 'ubuntu-latest'

0 comments on commit 600619f

Please sign in to comment.