From 06632068c38ff43ef026d7a1e1f959e6577a8722 Mon Sep 17 00:00:00 2001 From: Mike Bland Date: Tue, 19 Dec 2023 15:55:45 -0500 Subject: [PATCH 1/2] Bump GitHub Actions: setup-java, upload-artifact Specifically: - actions/setup-java@v4 - actions/upload-artifact@v4 --- .github/workflows/run-tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 59f13d5..6a67484 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: temurin java-version: 21 @@ -55,7 +55,7 @@ jobs: # Per the advice from: # - https://github.com/marketplace/actions/test-reporter - name: Upload test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: test-results From 41eafd6c6952352f4809805ec2635001e5dbbb19 Mon Sep 17 00:00:00 2001 From: Mike Bland Date: Tue, 19 Dec 2023 16:17:33 -0500 Subject: [PATCH 2/2] Use download-artifact@v4 in publish-test-results The previous commit bumped actions/upload-artifact in run-tests.yml to v4. The dorny/test-reporter@v1 action doesn't seem equipped to handle this upgrade, as the publish-test-results action on #66 failed. Using actions/download-artifact@v4 directly instead of relying on test-reporter seems like it should work. --- .github/workflows/publish-test-results.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-test-results.yaml b/.github/workflows/publish-test-results.yaml index e97fdda..013b915 100644 --- a/.github/workflows/publish-test-results.yaml +++ b/.github/workflows/publish-test-results.yaml @@ -19,11 +19,15 @@ jobs: report: runs-on: ubuntu-latest steps: + - name: Download test results + uses: actions/download-artifact@v4 + with: + name: test-results + - name: Post test report uses: dorny/test-reporter@v1 if: always() with: - artifact: test-results name: Test Results path: '**/build/test-results/test*/TESTS-TestSuites.xml' reporter: java-junit