Skip to content

Commit

Permalink
use brotli instead of gzip for test result compression
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Sep 22, 2024
1 parent e32eccd commit 003b51b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,14 @@ jobs:
if: always() && (env.JAVA_VERSION == env.PUBLISH_JDK)
run: >
find . -path */jacoco/*.exec -o -path */results/*.xml
| tar czf ${{ env.ARTIFACT_NAME }}.tar.gz --files-from -
| tar c --files-from - | brotli -o ${{ env.ARTIFACT_NAME }}.tar.br
- name: Upload test results
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always() && (env.JAVA_VERSION == env.PUBLISH_JDK)
with:
retention-days: 1
name: ${{ env.ARTIFACT_NAME }}-results
path: ${{ env.ARTIFACT_NAME }}.tar.gz
path: ${{ env.ARTIFACT_NAME }}.tar.br
- name: Cancel if failed
uses: andymckay/cancel-action@a955d435292c0d409d104b57d8e78435a93a6ef1 # 0.5
continue-on-error: true
Expand Down Expand Up @@ -239,7 +239,9 @@ jobs:
- name: Download Tests Results
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- name: Decompress
run: find . -type f -name '*.tar.gz' -exec sh -c 'tar -zxf {} --one-top-level' \;
run: >
find . -type f -name '*.tar.br' -exec sh -c
'brotli -d "$1" && tar -xf "${1%.br}" --one-top-level=results' _ {} \;
- name: Combine Jacoco Reports
uses: ./.github/actions/run-gradle
with:
Expand Down Expand Up @@ -298,7 +300,9 @@ jobs:
- name: Download Tests
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- name: Decompress
run: find . -type f -name '*.tar.gz' -exec sh -c 'tar -zxf {} --one-top-level' \;
run: >
find . -type f -name '*.tar.br' -exec sh -c
'brotli -d "$1" && tar -xf "${1%.br}" --one-top-level=results' _ {} \;
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@82082dac68ad6a19d980f8ce817e108b9f496c2a # v2.17.1
continue-on-error: true
Expand Down

0 comments on commit 003b51b

Please sign in to comment.