name: Coverage
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
- 'src/**'
- 'tests/**'
- '.github/**'
pull_request:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
- 'src/**'
- 'tests/**'
- '.github/**'
jobs:
Coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: clean
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast
env:
'CARGO_INCREMENTAL': '0'
'RUSTFLAGS': '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads'
- uses: actions-rs/grcov@v0.1
- name: Coveralls upload
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: /tmp/lcov.info