[ci] Add code coverage github actions workflow

This commit is contained in:
Steve Myers committed 2020-11-02 13:18:52 -08:00
1 parent 30f1ff5ab5
commit 40bf9f8b79
3 files changed
+82

No files matched your search

+29
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