mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
bfa388420b
There is enough open work on this, we should probably not have it public yet, so putting it behind a gate. See https://github.com/clap-rs/clap/issues/2924
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: Coverage
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
push:
|
|
branches: [master]
|
|
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
|
|
args: --features "wrap_help yaml regex unstable-replace unstable-multicall unstable-grouped" --lcov --output-path lcov.info
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@master
|
|
with:
|
|
path-to-lcov: lcov.info
|
|
github-token: ${{ secrets.github_token }}
|