From ca6ab8e560b948956427237ad6ecb4a5c655f138 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Wed, 15 Apr 2020 22:06:51 -0700 Subject: [PATCH] Try code coverage --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b98ed33..da9d821 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,8 @@ on: - master schedule: - cron: '00 01 * * *' +env: + RUST_BACKTRACE: 1 jobs: test: name: Test @@ -126,3 +128,23 @@ jobs: # warnings... Note: this also requires nightly. command: rustdoc args: --features 'bundled-full session buildtime_bindgen' -- -D warnings + + codecov: + name: Generate code coverage + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Run cargo-tarpaulin + uses: actions-rs/tarpaulin@v0.1 + with: + args: '--features "bundled-full session buildtime_bindgen"' + + - name: Upload to codecov.io + uses: codecov/codecov-action@v1.0.2 + with: + token: ${{secrets.CODECOV_TOKEN}}