Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Test Results as artifacts for failed runs #2918

Merged
merged 1 commit into from
Jun 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
jdkFile: '${{ runner.temp }}/java_package.tar.gz'
architecture: x64
- name: Test
id: run_test_cases
uses: burrunan/gradle-cache-action@v1
with:
job-id: jdk${{ matrix.jdk.version }}
Expand All @@ -71,3 +72,13 @@ jobs:
build
properties: |
testng.test.extra.jvmargs=${{ matrix.testExtraJvmArgs }}
- name: 'Generate unique build id'
id: build_id
if: ${{ steps.run_test_cases.outcome == 'failure' }}
run: echo "id=$(date +%s)" >> $GITHUB_OUTPUT
- name: Upload build reports
if: ${{ steps.run_test_cases.outcome == 'failure' }}
uses: actions/upload-artifact@v3
with:
name: build-reports-${{ matrix.jdk.group }}-${{ matrix.jdk.version }}-${{ steps.build_id.outputs.id }}
path: testng-core/build/reports/tests/test/**