Skip to content

Commit

Permalink
[CI] Provide for Test reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Corneil du Plessis committed Oct 16, 2023
1 parent 299eb08 commit 23cec88
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,22 @@ jobs:
set +e
echo "::notice ::core build completed"
popd > /dev/null
- name: Unit Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Unit Tests
path: '**/surefire-reports/*.xml'
fail-on-empty: false
reporter: java-junit
- name: Integration Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Integration Tests
path: '**/failsafe-reports/*.xml'
reporter: java-junit
fail-on-empty: false
- name: 'Upload: Test Reports'
if: ${{ always() }}
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -356,6 +372,22 @@ jobs:
VERBOSE: ${{ (github.debug || inputs.verbose) && 'true' || '' }}
MAVEN_THREADS: ${{ inputs.mavenThreads }}
run: ./build-app.sh "stream-applications" "applications/processor/${{ matrix.app }}"
- name: Unit Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Unit Tests
path: '**/surefire-reports/*.xml'
fail-on-empty: false
reporter: java-junit
- name: Integration Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Integration Tests
path: '**/failsafe-reports/*.xml'
reporter: java-junit
fail-on-empty: false
- name: 'Upload: Test Reports'
if: ${{ always() }}
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -465,6 +497,22 @@ jobs:
path: '**/target/surefire-reports'
retention-days: 7
if-no-files-found: ignore
- name: Unit Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Unit Tests
path: '**/surefire-reports/*.xml'
fail-on-empty: false
reporter: java-junit
- name: Integration Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Integration Tests
path: '**/failsafe-reports/*.xml'
reporter: java-junit
fail-on-empty: false
- name: 'Publish: ${{ matrix.app }}'
shell: bash
env:
Expand Down Expand Up @@ -558,6 +606,22 @@ jobs:
VERBOSE: ${{ (github.debug || inputs.verbose) && 'true' || '' }}
MAVEN_THREADS: ${{ inputs.mavenThreads }}
run: ./build-app.sh "stream-applications" "applications/source/${{ matrix.app }}"
- name: Unit Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Unit Tests
path: '**/surefire-reports/*.xml'
fail-on-empty: false
reporter: java-junit
- name: Integration Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Integration Tests
path: '**/failsafe-reports/*.xml'
reporter: java-junit
fail-on-empty: false
- name: 'Upload: Test Reports'
if: ${{ always() }}
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -688,6 +752,22 @@ jobs:
run: |
./set-doc-properties.sh "${{ needs.parameters.outputs.release_train_version }}"
echo "::notice ::stream-applications-release-train build completed"
- name: Unit Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Unit Tests
path: '**/surefire-reports/*.xml'
fail-on-empty: false
reporter: java-junit
- name: Integration Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Integration Tests
path: '**/failsafe-reports/*.xml'
reporter: java-junit
fail-on-empty: false
- name: 'Upload: Test Reports'
if: ${{ always() }}
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 23cec88

Please sign in to comment.