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:
parent
16f2a5e49f
commit
305cb1719a
5
.github/workflows/ci-build.yml
vendored
5
.github/workflows/ci-build.yml
vendored
@ -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:
|
||||||
|
5
.github/workflows/ci-pr.yml
vendored
5
.github/workflows/ci-pr.yml
vendored
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user