From 80060119caff225e2ce30d030aa0b0ff99023c4d Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Tue, 11 Apr 2023 09:40:27 -0400 Subject: [PATCH] Publish test reports in GitHub Actions --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a4fdc250..55f7d3034 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,9 @@ name: Build on: # yamllint disable-line rule:truthy - push +permissions: + checks: write + jobs: build: runs-on: ubuntu-latest @@ -46,6 +49,13 @@ jobs: # Note that bootBuildImage builds the image, but it's not pushed anywhere. # In the real world, you would push it somewhere using the --publishImage argument to bootBuildImage. arguments: build bootBuildImage -Pno-testcontainers + - name: Publish Test Report + uses: mikepenz/action-junit-report@v3 + if: success() || failure() # always run even if the previous step fails + with: + report_paths: + - 'build/reports/**/TEST-*.xml' + - 'build/reports/cypress/results-*.xml' - name: upload build reports uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3 with: