From 34dcbfc2cf704ee50bed63fbc59662afe8837874 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Fri, 29 May 2026 20:56:30 -0700 Subject: [PATCH] workflows/tests.yml: skip coverage upload when `brew tests` is skipped Signed-off-by: Patrick Linnane --- .github/workflows/tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b237a6bc6db48..e88a4ff149f3f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -304,6 +304,7 @@ jobs: echo "filenames=${filenames%,}" >> "$GITHUB_OUTPUT" - uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1 + if: github.event_name == 'pull_request' || matrix.name != 'tests (online)' with: working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }} files: ${{ steps.junit_xml.outputs.filenames }} @@ -312,13 +313,15 @@ jobs: report_type: test_results - uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1 + if: github.event_name == 'pull_request' || matrix.name != 'tests (online)' with: working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }} files: Library/Homebrew/test/coverage/coverage.xml disable_search: true token: ${{ secrets.CODECOV_TOKEN }} - - uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1 + - uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1.3.0 + if: github.event_name == 'pull_request' || matrix.name != 'tests (online)' with: file: ${{ steps.set-up-homebrew.outputs.repository-path }}/Library/Homebrew/test/coverage/coverage.xml language: Ruby