From 4dd37e7ef3dfbabb4a51645f87f13240042ed121 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sat, 17 Aug 2024 08:12:25 -0400 Subject: [PATCH] Fix code coverage uploading on PRs --- .github/workflows/ci-pipeline.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index c45546f67c..da9edcf9b8 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -1488,12 +1488,22 @@ jobs: name: windows-integration-test-coverage-Release-Advanced-Sqlite path: ./code_coverage/integration_tests/windows_integration_tests_release_system_sqlite - - name: Upload Coverage to CodeCov + - name: Upload Coverage to CodeCov (Branch) + if: github.event_name == 'push' || github.event_name == 'schedule' uses: codecov/codecov-action@v3 with: directory: ./code_coverage fail_ci_if_error: true + - name: Upload Coverage to CodeCov (PR) + if: github.event_name != 'push' && github.event_name != 'schedule' + uses: codecov/codecov-action@v3 + with: + directory: ./code_coverage + fail_ci_if_error: true + override_pr: ${{ inputs.pull_request_number }} + override_commit: ${{ github.sha }} + build-deb: name: Build .deb Package # Can't do i386 due to https://github.com/dotnet/core/issues/4595 needs: ci-start-gate