Skip to content

Commit

Permalink
chore: collect coverage from Rust tests (#1470)
Browse files Browse the repository at this point in the history
Co-authored-by: Will Manning <[email protected]>
  • Loading branch information
gatesn and lwwmanning authored Dec 17, 2024
1 parent 8e0e25c commit e69bde8
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ jobs:
- name: Rust Build (${{matrix.config.name}})
run: cargo hack ${{matrix.config.command}} ${{matrix.config.args}} --ignore-private


rust-test:
name: "Rust (tests)"
runs-on: ubuntu-latest
Expand All @@ -152,7 +151,19 @@ jobs:
done
- name: Rust Test
run: cargo test --workspace --all-features

env:
# Enable coverage using -Zprofile flag
RUSTFLAGS: '-Zprofile'
RUSTDOCFLAGS: '-Zprofile'
- uses: rraval/actions-rs-grcov@e96292badb0d33512d16654efb0ee3032a9a3cff
id: grcov
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
file: "${{ steps.grcov.outputs.report }}"

license-check-and-audit-check:
name: License Check and Audit Check
runs-on: ubuntu-latest
Expand Down

0 comments on commit e69bde8

Please sign in to comment.