diff options
| author | Fuwn <[email protected]> | 2021-05-20 03:30:06 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-20 03:30:06 +0000 |
| commit | 6e757a1b95b79b846c99deb0964c56bdea7e5789 (patch) | |
| tree | f2a8e08e1e14caea1253d8460a62d37abbeead45 /.github/workflows | |
| parent | ci(actions): security audit action (diff) | |
| download | whirl-6e757a1b95b79b846c99deb0964c56bdea7e5789.tar.xz whirl-6e757a1b95b79b846c99deb0964c56bdea7e5789.zip | |
ci(codecov): setup
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/coverage.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..e1637d6 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,44 @@ +name: Coverage 🛌 + +on: + push: + paths: + - "src/**" + - "Cargo.toml" + pull_request: + paths: + - "src/**" + - "Cargo.toml" + +jobs: + coverage: + runs-on: ubuntu-20.04 + + steps: + - name: Checkout 🛒 + uses: actions/checkout@v2 + + - name: Toolchain 🧰 + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly-2021-02-20 + components: rustfmt, clippy + override: true + + - name: Tarpaulin ⛺ + uses: actions-rs/[email protected] + with: + version: '0.15.0' + args: '-- --test-threads 1' + + - name: Upload to Codecov ✈ + uses: codecov/[email protected] + with: + token: ${{ secrets.CODECOV_TOKEN }} + + - name: Archive Coverage Results 🗃 + uses: actions/upload-artifact@v1 + with: + name: code-coverage-report + path: cobertura.xml |