Skip to content

Commit

Permalink
github: Report code coverage
Browse files Browse the repository at this point in the history
Closes #4
  • Loading branch information
ernestask committed May 2, 2022
1 parent 5eac505 commit ac7bc08
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/primary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
clippy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
Expand All @@ -38,14 +38,24 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
os: [ubuntu-20.04, ubuntu-22.04]
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- name: Build
run: cargo build --tests --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions-rs/cargo@v1
with:
command: test
args: test --all-features --no-fail-fast --verbose
toolchain: nightly
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
- id: coverage
uses: actions-rs/grcov@v0.1.6
- uses: codecov/codecov-action@v2
with:
files: ${{ steps.coverage.outputs.report }}

check-readme:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ac7bc08

Please sign in to comment.