Always attach test results to PR builds

Previously the test results were only attached to passing builds, which is, like, the opposite of useful.

Also finally figured out how to nerf the local docker layer cache.
Recorded this new knowledge as make commands.
This commit is contained in:
Chris Vest 2021-04-27 15:06:43 +02:00
parent 49deb77fd3
commit 0db6a745dc
2 changed files with 7 additions and 1 deletions

View File

@ -44,7 +44,8 @@ jobs:
- name: Make build
run: make build
- name: Publish Test Report
uses: scacap/action-surefire-report@v1.0.7
uses: scacap/action-surefire-report@v1.0.9
if: ${{ always() }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
report_paths: '**/target/surefire-reports/TEST-*.xml'

View File

@ -16,6 +16,9 @@ clean:
docker rm -fv build-container-dbg
docker rm -fv build-container
clean-layer-cache:
docker builder prune -f -a
build: image
docker create --name build-container netty-incubator-buffer:build
mkdir -p target/container-output
@ -23,3 +26,5 @@ build: image
docker wait build-container || (docker cp build-container:/home/build target/container-output && false)
docker cp build-container:/home/build/target .
docker rm build-container
rebuild: clean clean-layer-cache build