From 16e39acddd186a6284084ed9d5e638f2a863c3da Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sun, 5 Dec 2021 12:45:43 +0000 Subject: [PATCH] add coverage workflow --- .github/workflows/coverage.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 00000000..19fe0f4e --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,29 @@ +on: + push: + branches: [master] + pull_request: + +name: Code Coverage + +jobs: + coverage: + name: coverage + runs-on: ubuntu-latest + steps: + - name: checkout source + uses: actions/checkout@v2 + + - name: Install nightly toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + profile: minimal + override: true + + - name: Run cargo-tarpaulin + uses: actions-rs/tarpaulin@v0.1 + with: + args: --all-features --tests --doc + + - name: Upload to codecov.io + uses: codecov/codecov-action@v2.1.0