From 707367699a373a5082039cd596ee31a1af383bd8 Mon Sep 17 00:00:00 2001 From: Darren Reddick <57802771+darren-reddick@users.noreply.github.com> Date: Fri, 12 Feb 2021 19:42:08 +0000 Subject: [PATCH 1/4] Create grcov.yaml --- .github/workflows/grcov.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/grcov.yaml 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 From c6a01608ba485531a66c36004d68ca6242d91e14 Mon Sep 17 00:00:00 2001 From: Darren Reddick <57802771+darren-reddick@users.noreply.github.com> Date: Fri, 12 Feb 2021 19:58:30 +0000 Subject: [PATCH 2/4] Create grcov.yml --- .github/actions-rs/grcov.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/actions-rs/grcov.yml diff --git a/.github/actions-rs/grcov.yml b/.github/actions-rs/grcov.yml new file mode 100644 index 0000000..8bc48fb --- /dev/null +++ b/.github/actions-rs/grcov.yml @@ -0,0 +1,10 @@ +output-type: html +llvm: true +branch: true +ignore-not-existing: true +output-path: ./target/debug/coverage/ +source-dir: . +path-mapping: + - "./target/debug/" + + From c5651abc15ae599172fa25b807d8766e8d0f1ba7 Mon Sep 17 00:00:00 2001 From: Darren Reddick <57802771+darren-reddick@users.noreply.github.com> Date: Fri, 12 Feb 2021 20:04:44 +0000 Subject: [PATCH 3/4] Update grcov.yml --- .github/actions-rs/grcov.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions-rs/grcov.yml b/.github/actions-rs/grcov.yml index 8bc48fb..6d991bb 100644 --- a/.github/actions-rs/grcov.yml +++ b/.github/actions-rs/grcov.yml @@ -1,4 +1,5 @@ -output-type: html +output-type: lcov +output-path: ./lcov.info llvm: true branch: true ignore-not-existing: true From c7f04f5276da19e637ddb7d64cd1d329e1a3820b Mon Sep 17 00:00:00 2001 From: Darren Reddick <57802771+darren-reddick@users.noreply.github.com> Date: Fri, 12 Feb 2021 20:11:30 +0000 Subject: [PATCH 4/4] Update grcov.yml --- .github/actions-rs/grcov.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/actions-rs/grcov.yml b/.github/actions-rs/grcov.yml index 6d991bb..f4da2f7 100644 --- a/.github/actions-rs/grcov.yml +++ b/.github/actions-rs/grcov.yml @@ -3,7 +3,6 @@ output-path: ./lcov.info llvm: true branch: true ignore-not-existing: true -output-path: ./target/debug/coverage/ source-dir: . path-mapping: - "./target/debug/"