frost/.github/workflows/coverage.yaml

48 lines
1.0 KiB
YAML
Raw Normal View History

name: Coverage
2021-01-19 16:44:40 -08:00
on:
workflow_dispatch:
push:
branches:
- main
2021-01-19 16:44:40 -08:00
pull_request:
path:
- '**/*.rs'
- '**/*.txt'
- '**/Cargo.toml'
- '**/Cargo.lock'
- 'codecov.yml'
- '.github/workflows/coverage.yml'
2021-01-19 16:44:40 -08:00
jobs:
coverage:
name: Coverage (+nightly)
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: full
2021-01-19 16:44:40 -08:00
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
2021-01-19 16:44:40 -08:00
- uses: actions-rs/toolchain@v1.0.7
2021-01-19 16:44:40 -08:00
with:
toolchain: nightly
override: true
profile: minimal
components: llvm-tools-preview
- name: Install cargo-llvm-cov cargo command
run: cargo install cargo-llvm-cov
2021-01-19 16:44:40 -08:00
- name: Run tests
run: cargo llvm-cov --lcov --no-report
2021-01-19 16:44:40 -08:00
- name: Generate coverage report
run: cargo llvm-cov --lcov --no-run --output-path lcov.info
2021-01-19 16:44:40 -08:00
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3