diff options
Diffstat (limited to '.github/workflows/coverage.yml')
| -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 |