Created
March 15, 2021 10:23
-
-
Save bitdivine/1ad2d5a244ceedb4769945d52a2a956e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Code Coverage | |
jobs: | |
tarpaulin: | |
name: Rust Tarpaulin | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Run cargo-tarpaulin | |
uses: actions-rs/[email protected] | |
with: | |
version: '0.16.0' | |
args: '--run-types AllTargets -- --test-threads 1' | |
out-type: 'Html' | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v1 | |
with: | |
name: code-coverage-report | |
path: tarpaulin-report.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment