From 6f9e3a7eb3174de39e91c028958318ce7bdafa07 Mon Sep 17 00:00:00 2001 From: Orion Yeung <11580988+orionyeung001@users.noreply.github.com> Date: Wed, 15 May 2024 16:31:49 -0500 Subject: [PATCH 1/3] feat: reintroduce coverage with tarpaulin and codecov --- .github/workflows/coverage.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 00000000..6ccb6ca6 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,29 @@ +name: Coverage + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] +jobs: + test: + name: Coverage + runs-on: ubuntu-latest + container: + image: xd009642/tarpaulin:develop-nightly + options: --security-opt seccomp=unconfined + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Generate code coverage + run: | + cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml + + - name: Upload to codecov.io + uses: codecov/codecov-action@v2 + with: + # use_oidc: true + file: ./cobertura.xml + token: ${{secrets.CODECOV_TOKEN}} # not required for public repos + fail_ci_if_error: true From 3448ca473ddeb3d83e156970e779dddd180f29cf Mon Sep 17 00:00:00 2001 From: Orion Yeung <11580988+YeungOnion@users.noreply.github.com> Date: Sun, 26 May 2024 19:09:08 -0500 Subject: [PATCH 2/3] Update actions/checkout version in coverage.yml Co-authored-by: FreezyLemon --- .github/workflows/coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6ccb6ca6..8ef8a1d3 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -14,7 +14,7 @@ jobs: options: --security-opt seccomp=unconfined steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Generate code coverage run: | From 7f83dcfe4c4a0b1532e8e5f6169897844728632d Mon Sep 17 00:00:00 2001 From: Orion Yeung <11580988+YeungOnion@users.noreply.github.com> Date: Sun, 26 May 2024 19:09:29 -0500 Subject: [PATCH 3/3] Update codecov/codecov-action version in coverage.yml Co-authored-by: FreezyLemon --- .github/workflows/coverage.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 8ef8a1d3..3c6fe8f8 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -21,9 +21,8 @@ jobs: cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml - name: Upload to codecov.io - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 with: - # use_oidc: true file: ./cobertura.xml - token: ${{secrets.CODECOV_TOKEN}} # not required for public repos + token: ${{secrets.CODECOV_TOKEN}} fail_ci_if_error: true