From 30a72b4a93e82a6f05e2bc6a5f071f87ab5cb949 Mon Sep 17 00:00:00 2001 From: Mac L Date: Tue, 7 Nov 2023 21:51:54 +1100 Subject: [PATCH 1/2] Add code coverage --- .github/workflows/test-suite.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 27792ae..2782ef6 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -31,3 +31,18 @@ jobs: run: rustup update stable - name: Run tests run: cargo test --release + coverage: + runs-on: ubuntu-latest + name: cargo-tarpaulin + steps: + - uses: actions/checkout@v3 + - name: Get latest version of stable Rust + run: rustup update stable + - name: Install cargo-tarpaulin + uses: taiki-e/install-action@cargo-tarpaulin + - name: Check code coverage with cargo-tarpaulin + run: cargo-tarpaulin --workspace --all-features --out xml + - name: Upload to codecov.io + uses: codecov/codecov-action@v2 + with: + fail_ci_if_error: true From 35f779a1b633160bd1043b902445cb7a53d7299d Mon Sep 17 00:00:00 2001 From: Mac L Date: Wed, 8 Nov 2023 13:08:46 +1100 Subject: [PATCH 2/2] Try v3 --- .github/workflows/test-suite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 2782ef6..7070c5c 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -43,6 +43,6 @@ jobs: - name: Check code coverage with cargo-tarpaulin run: cargo-tarpaulin --workspace --all-features --out xml - name: Upload to codecov.io - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: fail_ci_if_error: true