Add a build step that uploads surefire test reports
Motivation: When a build fails, the number one priority is figuring out why. Having surefire test reports readily available on the Github Actions page will make this easier. Modification: Add a build step that uploads surefire test reports and attaches them as a check to the PR. Result: Easier to diagnose test failures on PRs.
This commit is contained in:
parent
e7f7335804
commit
4ddd194b91
11
.github/workflows/ci-workflow.yml
vendored
11
.github/workflows/ci-workflow.yml
vendored
@ -43,8 +43,15 @@ jobs:
|
|||||||
# Run the make script
|
# Run the make script
|
||||||
- name: Make build
|
- name: Make build
|
||||||
run: make build
|
run: make build
|
||||||
|
- name: Publish Test Report
|
||||||
- uses: actions/upload-artifact@v2
|
uses: scacap/action-surefire-report@v1.0.7
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
report_paths: '**/target/surefire-reports/TEST-*.xml'
|
||||||
|
commit: ${{ github.event.workflow_run.head_commit.id }}
|
||||||
|
check_name: Build test reports
|
||||||
|
- name: Upload build artefacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
with:
|
with:
|
||||||
name: target
|
name: target
|
||||||
|
Loading…
Reference in New Issue
Block a user