From 91b10f9bcf469d0a399f88bbbd9f30019c346de6 Mon Sep 17 00:00:00 2001 From: Victor Roest Date: Sun, 2 Aug 2020 13:06:41 +0200 Subject: [PATCH 1/2] Run tarpaulin instead of test --- .github/workflows/rust.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ff7f1a8..f1f4fc0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,8 +24,9 @@ jobs: - uses: actions/checkout@v2 - name: Build run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - name: Run cargo-tarpaulin + uses: actions-rs/tarpaulin@v0.1 + check: runs-on: ubuntu-latest steps: From f5af144c443b3e1f803b54e96b55ddc0b2969db1 Mon Sep 17 00:00:00 2001 From: Victor Roest Date: Sun, 2 Aug 2020 13:16:37 +0200 Subject: [PATCH 2/2] add artifact for coverage --- .github/workflows/rust.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f1f4fc0..a587af0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,6 +27,12 @@ jobs: - name: Run cargo-tarpaulin uses: actions-rs/tarpaulin@v0.1 + - name: Archive code coverage results + uses: actions/upload-artifact@v1 + with: + name: code-coverage-report + path: cobertura.xml + check: runs-on: ubuntu-latest steps: