Try code coverage

This commit is contained in:
Thom Chiovoloni 2020-04-15 22:06:51 -07:00 committed by Thom Chiovoloni
parent 4f19827ee9
commit ca6ab8e560

View File

@ -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}}