Skip to content

Commit

Permalink
Upload test results to CodeCov
Browse files Browse the repository at this point in the history
CodeCov now supports uploading test results which allows e.g. flaky test
detection and may allow us to remove BuildPulse.
  • Loading branch information
MikeMcQuaid committed Dec 5, 2024
1 parent b93c179 commit 02652d2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,19 @@ jobs:
HOMEBREW_BUILDPULSE_ACCOUNT_ID: 1503512
HOMEBREW_BUILDPULSE_REPOSITORY_ID: 53238813

- id: junit_xml
run: |

Check failure on line 360 in .github/workflows/tests.yml

View workflow job for this annotation

GitHub Actions / workflow_syntax

shellcheck reported issue in this script: SC2012:info:2:13: Use find instead of ls to better handle non-alphanumeric filenames
cd "${{ steps.set-up-homebrew.outputs.repository-path }}"
filenames=$(ls test/junit/rspec*.xml | tr '\n' ',')
echo "filenames=${filenames%,}" >> "$GITHUB_OUTPUT"
- uses: codecov/test-results-action@v1
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 02652d2

Please sign in to comment.