Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
Add coverage steps to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
samueldple committed Nov 3, 2019
1 parent fc4488c commit d240c24
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/actions-rs/grcov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
branch: true
ignore-not-existing: true
llvm: true
filter: covered
output-type: lcov
output-file: ./lcov.info
18 changes: 16 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,19 @@ jobs:
run: cargo clippy -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Test
run: >-
rustup toolchain install nightly &&
cargo clean &&
cargo +nightly test --verbose
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code
- name: Generate Coverage
id: coverage
uses: actions-rs/grcov@v0.1
- name: Upload Coverage
uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: ${{ steps.coverage.outputs.report }}

0 comments on commit d240c24

Please sign in to comment.