name: Coverage
on:
push:
branches:
pull_request:
branches:
jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run Tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
timeout: 120
args: '--ignore-tests --all-features --verbose'
- name: Upload to codecov.io
uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}