Skip to content

Commit

Permalink
upload test results to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Sep 23, 2024
1 parent e32eccd commit 5efe1af
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,20 @@ jobs:
gist_description: Test Results
github_file: badge.svg
gist_title: badge.svg
- name: Combine JUnit XML files
if: inputs.java != 'GraalVM'
run: |
echo '<?xml version="1.0" encoding="UTF-8"?>' > combined-tests.xml
echo '<testsuites>' >> combined-tests.xml
for file in $(find . -type f -name 'TEST-*.xml'); do
sed -n '/<testsuite/,/<\/testsuite>/p' $file >> combined-tests.xml
done
echo '</testsuites>' >> combined-tests.xml
- name: Publish to Codecov
uses: codecov/test-results-action@1b5b448b98e58ba90d1a1a1d9fcb72ca2263be46 # v1.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: combined-tests.xml

publish-snapshot:
name: Publish Snapshot
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ versions = "0.51.0"
xz = "1.10"
ycsb = "0.17.0"
zero-allocation-hashing = "0.26ea0"
zstd = "1.5.6-5"
zstd = "1.5.6-6"

[libraries]
asm-bom = { module = "org.ow2.asm:asm-bom", version.ref = "asm" }
Expand Down

0 comments on commit 5efe1af

Please sign in to comment.