From 5efe1afcb9347286d8348859eefcb1f647bd5173 Mon Sep 17 00:00:00 2001 From: Ben Manes Date: Sun, 22 Sep 2024 21:34:49 -0700 Subject: [PATCH] upload test results to codecov --- .github/workflows/build.yml | 14 ++++++++++++++ gradle/libs.versions.toml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e28c4b67d..bef0646bbf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 '' > combined-tests.xml + echo '' >> combined-tests.xml + for file in $(find . -type f -name 'TEST-*.xml'); do + sed -n '//p' $file >> combined-tests.xml + done + echo '' >> 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 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2d575350b9..c1a0fc0842 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" }