Skip to content

Commit

Permalink
Fix test report artifact uploading (opensearch-project#1267)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia authored Nov 6, 2024
1 parent ec3250a commit 2d9e114
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-integration-unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ jobs:
- name: Upload Reports
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-reports
name: test-reports-os${{ matrix.entry.opensearch_ref }}-java${{ matrix.entry.java }}
path: opensearch-java/java-client/build/reports/
retention-days: 7
4 changes: 2 additions & 2 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ jobs:

- name: Upload Reports
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-reports
name: test-reports-os${{ matrix.entry.opensearch_version }}-java${{ matrix.entry.java }}
path: java-client/build/reports/
retention-days: 7

Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:

- name: Run Unit Test
run: ./gradlew clean unitTest

- name: Upload Reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports-java${{ matrix.java }}-${{ runner.os }}
path: java-client/build/reports/
retention-days: 7

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

- name: Run Unit Test
run: ./gradlew clean unitTest -D"runtime.java=8"

- name: Upload Reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports-java8-${{ runner.os }}
path: java-client/build/reports/
retention-days: 7

0 comments on commit 2d9e114

Please sign in to comment.