Use action to report unit test errors (#10966)

Motivation:

To make it easier to understand why the build fails lets use an action that will report which unit test failed

Modifications:

- Replace custom script with action-surefire-report

Result:

Easier to understand test failures
This commit is contained in:
Norman Maurer 2021-01-26 15:39:44 +01:00 committed by GitHub
parent 16f2a5e49f
commit 305cb1719a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -49,6 +49,11 @@ jobs:
- name: Build project without leak detection - name: Build project without leak detection
run: docker-compose ${{ matrix.docker-compose-run }} run: docker-compose ${{ matrix.docker-compose-run }}
- name: ${{ matrix.setup }} test-report
uses: scacap/action-surefire-report@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
if: ${{ failure() }} if: ${{ failure() }}
with: with:

View File

@ -121,6 +121,11 @@ jobs:
- name: Build project with leak detection - name: Build project with leak detection
run: docker-compose ${{ matrix.docker-compose-run }} | tee build-leak.output run: docker-compose ${{ matrix.docker-compose-run }} | tee build-leak.output
- name: ${{ matrix.setup }} test-report
uses: scacap/action-surefire-report@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checking for detected leak - name: Checking for detected leak
run: ./.github/scripts/check_leak.sh build-leak.output run: ./.github/scripts/check_leak.sh build-leak.output