From 9f463b70d1b717fb3abd8d41a972c58ce8b43fed Mon Sep 17 00:00:00 2001 From: EdJoPaTo Date: Sun, 24 Oct 2021 03:15:55 +0200 Subject: [PATCH] ci(coverage): create code coverage --- .github/workflows/coverage.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..7b58d56 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,30 @@ +name: Test Coverage + +on: + push: + pull_request: + +jobs: + tarpaulin: + name: Tarpaulin + runs-on: ubuntu-latest + steps: + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + override: true + toolchain: stable + + - uses: actions/checkout@v2 + + - name: Run cargo-tarpaulin + uses: actions-rs/tarpaulin@v0.1 + with: + args: --all-features + out-type: Html + + - name: Upload Report + uses: actions/upload-artifact@v2 + with: + name: report + path: tarpaulin-report.html