This GitHub Action runs the cargo test
command on a Rust language project and calculates the source based code coverage of the tests.
name: codecoverage
on: [ push, pull_request ]
jobs:
test_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1.0.6
with:
toolchain: nightly
components: llvm-tools-preview
- uses: actions-rs/cargo@v1
with:
command: install
toolchain: nightly
args: cargo-binutils
- name: cargo test coverage (source based)
uses: JulianSchmid/actions-rs-llvm-coverage@v1
Name | Required | Description | Type | Default |
---|---|---|---|---|
use-cross |
Use cross instead of cargo |
bool | false |
- Codecov integration
- With merged reports
- Seperated reports?
- HTML Report
- Doctest support
- Remove cross?