From 19724473de0a1ca68e31400f6cbc1c401ce80639 Mon Sep 17 00:00:00 2001 From: Aitor Ruano <45633475+c0dearm@users.noreply.github.com> Date: Wed, 22 Jan 2020 16:52:59 +0100 Subject: [PATCH] Add coverage report to CI --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54f77a4..be7724b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,3 +62,22 @@ jobs: with: command: clippy args: -- -D warnings + + coverage: + name: Coverage + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: actions-rs/tarpaulin@v0.1 + - uses: codecov/codecov-action@v1.0.5 + with: + token: ${{secrets.CODECOV_TOKEN}} + - uses: actions/upload-artifact@v1 + with: + name: code-coverage-report + path: cobertura.xml