Skip to content

Commit 31260b6

Browse files
Fix test report artifact uploading (#1267) (#1408)
(cherry picked from commit 2d9e114) Signed-off-by: Thomas Farr <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent fcde8ec commit 31260b6

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

Diff for: .github/workflows/test-integration-unreleased.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ jobs:
9393
9494
- name: Upload Reports
9595
if: failure()
96-
uses: actions/upload-artifact@v3
96+
uses: actions/upload-artifact@v4
9797
with:
98-
name: test-reports
98+
name: test-reports-os${{ matrix.entry.opensearch_ref }}-java${{ matrix.entry.java }}
9999
path: opensearch-java/java-client/build/reports/
100100
retention-days: 7

Diff for: .github/workflows/test-integration.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ jobs:
5656

5757
- name: Upload Reports
5858
if: failure()
59-
uses: actions/upload-artifact@v3
59+
uses: actions/upload-artifact@v4
6060
with:
61-
name: test-reports
61+
name: test-reports-os${{ matrix.entry.opensearch_version }}-java${{ matrix.entry.java }}
6262
path: java-client/build/reports/
6363
retention-days: 7
6464

Diff for: .github/workflows/test-unit.yml

+16
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ jobs:
2222

2323
- name: Run Unit Test
2424
run: ./gradlew clean unitTest
25+
26+
- name: Upload Reports
27+
if: failure()
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: test-reports-java${{ matrix.java }}-${{ runner.os }}
31+
path: java-client/build/reports/
32+
retention-days: 7
2533

2634
test-java8:
2735
runs-on: ${{ matrix.os }}
@@ -48,3 +56,11 @@ jobs:
4856

4957
- name: Run Unit Test
5058
run: ./gradlew clean unitTest -D"runtime.java=8"
59+
60+
- name: Upload Reports
61+
if: failure()
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: test-reports-java8-${{ runner.os }}
65+
path: java-client/build/reports/
66+
retention-days: 7

0 commit comments

Comments
 (0)