[ci] Add code coverage github actions workflow

This commit is contained in:
Steve Myers
2020-10-27 15:13:51 -07:00
parent 30f1ff5ab5
commit 40bf9f8b79
3 changed files with 82 additions and 0 deletions

29
.github/workflows/code_coverage.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
on: [push]
name: Code Coverage
jobs:
tarpaulin-codecov:
name: Tarpaulin to codecov.io
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: tarpaulin
uses: actions-rs/tarpaulin@v0.1.2
with:
version: '0.15.0'
args: '-- --test-threads 1'
- name: codecov.io
uses: codecov/codecov-action@v1.0.14
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true