2021-10-01 19:55:41 +00:00
|
|
|
name: Coverage
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
push:
|
2021-10-09 18:50:16 +00:00
|
|
|
branches: [master]
|
2021-10-01 19:55:41 +00:00
|
|
|
concurrency:
|
|
|
|
group: coverage-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
|
|
coverage:
|
|
|
|
name: Coverage
|
|
|
|
continue-on-error: true
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
components: llvm-tools-preview
|
|
|
|
override: true
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install llvm-cov
|
|
|
|
uses: actions-rs/install@v0.1
|
|
|
|
with:
|
|
|
|
crate: cargo-llvm-cov
|
|
|
|
version: 0.1.0-alpha.4
|
|
|
|
use-tool-cache: true
|
|
|
|
- name: Coverage
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: llvm-cov
|
2021-10-23 15:01:55 +00:00
|
|
|
args: --features "wrap_help yaml regex unstable-replace unstable-multicall unstable-grouped" --lcov --output-path lcov.info
|
2021-10-01 19:55:41 +00:00
|
|
|
- name: Coveralls
|
|
|
|
uses: coverallsapp/github-action@master
|
|
|
|
with:
|
|
|
|
path-to-lcov: lcov.info
|
|
|
|
github-token: ${{ secrets.github_token }}
|