aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-20 03:30:06 +0000
committerFuwn <[email protected]>2021-05-20 03:30:06 +0000
commit6e757a1b95b79b846c99deb0964c56bdea7e5789 (patch)
treef2a8e08e1e14caea1253d8460a62d37abbeead45 /.github/workflows
parentci(actions): security audit action (diff)
downloadwhirl-6e757a1b95b79b846c99deb0964c56bdea7e5789.tar.xz
whirl-6e757a1b95b79b846c99deb0964c56bdea7e5789.zip
ci(codecov): setup
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/coverage.yml44
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