From 095cfdf9635b12149fcda803ffcbdfd1cc1d39a0 Mon Sep 17 00:00:00 2001 From: BAStos525 Date: Fri, 1 Nov 2024 22:14:19 +0300 Subject: [PATCH 1/3] ci: Add back Codecov coverage tool Signed-off-by: BAStos525 --- .github/workflows/iroha2-dev-pr.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/iroha2-dev-pr.yml b/.github/workflows/iroha2-dev-pr.yml index ff127fca46a..d2ad0e6dc43 100644 --- a/.github/workflows/iroha2-dev-pr.yml +++ b/.github/workflows/iroha2-dev-pr.yml @@ -120,6 +120,12 @@ jobs: with: name: report-coverage path: lcov.info + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} - name: Upload test network artifacts if: failure() && (steps.test_no_features.outcome == 'failure' || steps.test_all_features.outcome == 'failure') uses: actions/upload-artifact@v4 From fa6bdd3104063b7f7b47ff333a85d1765df19936 Mon Sep 17 00:00:00 2001 From: BAStos525 Date: Sat, 2 Nov 2024 14:52:52 +0300 Subject: [PATCH 2/3] ci: remove token Signed-off-by: BAStos525 --- .github/workflows/iroha2-dev-pr.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/iroha2-dev-pr.yml b/.github/workflows/iroha2-dev-pr.yml index d2ad0e6dc43..c1b165e77e8 100644 --- a/.github/workflows/iroha2-dev-pr.yml +++ b/.github/workflows/iroha2-dev-pr.yml @@ -125,7 +125,6 @@ jobs: with: fail_ci_if_error: true files: lcov.info - token: ${{ secrets.CODECOV_TOKEN }} - name: Upload test network artifacts if: failure() && (steps.test_no_features.outcome == 'failure' || steps.test_all_features.outcome == 'failure') uses: actions/upload-artifact@v4 From c49dceedd36110dee55f007f40ea9f1f15a76178 Mon Sep 17 00:00:00 2001 From: BAStos525 Date: Sat, 2 Nov 2024 18:13:21 +0300 Subject: [PATCH 3/3] ci: Use Coveralls Signed-off-by: BAStos525 --- .github/workflows/iroha2-dev-pr.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/iroha2-dev-pr.yml b/.github/workflows/iroha2-dev-pr.yml index c1b165e77e8..944e6444e96 100644 --- a/.github/workflows/iroha2-dev-pr.yml +++ b/.github/workflows/iroha2-dev-pr.yml @@ -120,11 +120,12 @@ jobs: with: name: report-coverage path: lcov.info - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + - name: Upload coverage to Coveralls + uses: coverallsapp/github-action@v2.3.4 with: - fail_ci_if_error: true - files: lcov.info + file: lcov.info + format: lcov + github-token: ${{ github.token }} - name: Upload test network artifacts if: failure() && (steps.test_no_features.outcome == 'failure' || steps.test_all_features.outcome == 'failure') uses: actions/upload-artifact@v4