diff --git a/.github/actions-rs/grcov.yml b/.github/actions-rs/grcov.yml new file mode 100644 index 0000000..f4da2f7 --- /dev/null +++ b/.github/actions-rs/grcov.yml @@ -0,0 +1,10 @@ +output-type: lcov +output-path: ./lcov.info +llvm: true +branch: true +ignore-not-existing: true +source-dir: . +path-mapping: + - "./target/debug/" + + diff --git a/.github/workflows/grcov.yaml b/.github/workflows/grcov.yaml new file mode 100644 index 0000000..f6562fd --- /dev/null +++ b/.github/workflows/grcov.yaml @@ -0,0 +1,22 @@ +on: [push] + +name: Code Coverage + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + - uses: actions-rs/cargo@v1 + with: + command: test + args: --all-features --no-fail-fast + 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' + - uses: actions-rs/grcov@v0.1