Skip to content

Commit

Permalink
Fix test report artifact uploading
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <tsfarr@amazon.com>
  • Loading branch information
Xtansia committed Nov 6, 2024
1 parent 6bf8a38 commit 3677db6
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 3677db6

Please sign in to comment.