Skip to content

Commit

Permalink
needed to store all test results in different artifacts, then recombi…
Browse files Browse the repository at this point in the history
…ne them

Signed-off-by: jflo <justin+github@florentine.us>
  • Loading branch information
jflo committed Dec 12, 2023
1 parent c675e61 commit 01e4ed8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
uses: dawidd6/action-download-artifact@v2
with:
branch: main
name: acceptance-test-results
name_is_regexp: true
name: 'acceptance-node-\d*\d-test-results'
path: tmp/junit-xml-reports-downloaded
if_no_artifact_found: true
- name: setup gradle
Expand All @@ -54,7 +55,7 @@ jobs:
- name: Upload Acceptance Test Results
uses: actions/upload-artifact@v3.1.0
with:
name: acceptance-test-results
name: acceptance-node-${{matrix.runner_index}}-test-results
path: 'acceptance-tests/tests/build/test-results/acceptanceTest/TEST-*.xml'
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/pre-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,6 @@ jobs:
uses: gradle/gradle-build-action@v2.10.0
- name: run unit tests
run: ./gradlew $GRADLEW_UNIT_TEST_ARGS -Dorg.gradle.parallel=true -Dorg.gradle.caching=true
- name: Upload Test Report
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
with:
name: junit-xml-reports
path: '**/build/test-results/test/TEST-*.xml'
retention-days: 1
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the build step fails
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/reference-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ jobs:
uses: dawidd6/action-download-artifact@v2
with:
branch: main
name: reference-test-results
name_is_regexp: true
name: 'reference-test-node-\d*\d-results'
path: tmp/ref-xml-reports-downloaded
if_no_artifact_found: true
- name: setup gradle
Expand All @@ -81,6 +82,6 @@ jobs:
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
with:
name: reference-test-results
name: reference-test-node-${{matrix.runner-index}}-results
path: '**/build/test-results/referenceTests/TEST-*.xml'

0 comments on commit 01e4ed8

Please sign in to comment.