summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2020-11-18 19:24:45 +0100
committerSanto Cariotti <santo@dcariotti.me>2020-11-18 19:24:45 +0100
commit79b4ef49a60a01ea631e33bd54fe7b45f4cfd63e (patch)
tree05e30b51f7c8669ab4e7641ab77ad3d98c29d128
parentd7684b36abf5a1712dd5c6e1ab81504b704434d5 (diff)
ci: rust coverage
-rw-r--r--.github/workflows/rust.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index fbd07bf..df0ced1 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -16,10 +16,15 @@ jobs:
steps:
- uses: actions/checkout@v2
+ - name: Install dependecies
+ run: |
+ cargo install cargo-tarpaulin
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
+ - name: Generate code coverage
+ run: cargo tarpaulin -v --out Xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with: