From fa5ceca8de977a6756f9fe0579af276dcdebc08c Mon Sep 17 00:00:00 2001 From: Yannick Funk Date: Thu, 13 May 2021 19:02:09 +0200 Subject: [PATCH 1/3] add codecov --- .github/workflows/rust.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8ecae3b..05e978c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -35,3 +35,20 @@ jobs: run: cargo build - name: Run tests run: cargo test --lib + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Run cargo-tarpaulin + uses: actions-rs/tarpaulin@v0.1 + with: + version: '0.15.0' + args: '-- --test-threads 1' + + - name: Upload to codecov.io + uses: codecov/codecov-action@v1.0.2 + with: + token: ${{secrets.CODECOV_TOKEN}} From b2a2fdb264905bf54c2ac1915022aafc1409dafa Mon Sep 17 00:00:00 2001 From: Yannick Funk Date: Thu, 13 May 2021 19:07:59 +0200 Subject: [PATCH 2/3] Remove install stable toolchain --- .github/workflows/rust.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 05e978c..99c08ef 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -35,12 +35,6 @@ jobs: run: cargo build - name: Run tests run: cargo test --lib - - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - name: Run cargo-tarpaulin uses: actions-rs/tarpaulin@v0.1 From 3cef89ee25ed764e2fd81e5c215ce96ff4eab7db Mon Sep 17 00:00:00 2001 From: Yannick Funk Date: Thu, 13 May 2021 19:21:02 +0200 Subject: [PATCH 3/3] Add codecov badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b9e2499..21771b5 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ With `genanki-rs` you can easily generate decks for the popular open source flas *This library and its author(s) are not affiliated/associated with the main Anki project in any way.* -![example workflow](https://github.com/yannickfunk/genanki-rs/actions/workflows/rust.yml/badge.svg) +![example workflow](https://github.com/yannickfunk/genanki-rs/actions/workflows/rust.yml/badge.svg)[![codecov](https://codecov.io/gh/yannickfunk/genanki-rs/branch/master/graph/badge.svg?token=16A3Z7SE6W)](https://codecov.io/gh/yannickfunk/genanki-rs) ## How to use (Use the [`documentation`](https://docs.rs/genanki-rs/0.1.0/genanki_rs/index.html) for further information) Add