Skip to content

Commit

Permalink
Merge pull request #18876 from Homebrew/codecov_test_results
Browse files Browse the repository at this point in the history
Upload test results to CodeCov
  • Loading branch information
MikeMcQuaid authored Dec 5, 2024
2 parents 1b7f8ed + 316bf36 commit 861c462
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,20 @@ jobs:
HOMEBREW_BUILDPULSE_ACCOUNT_ID: 1503512
HOMEBREW_BUILDPULSE_REPOSITORY_ID: 53238813

- id: junit_xml
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
run: |
mkdir -p test/junit
filenames=$(find test/junit -name 'rspec*.xml' -print | tr '\n' ',')
echo "filenames=${filenames%,}" >> "$GITHUB_OUTPUT"
- uses: codecov/test-results-action@9739113ad922ea0a9abb4b2c0f8bf6a4aa8ef820 # v1.0.1
with:
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
files: ${{ steps.junit_xml.outputs.filenames }}
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}

- uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
with:
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
Expand Down

0 comments on commit 861c462

Please sign in to comment.