diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2b30c32..9950c10 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -29,3 +29,10 @@ jobs: name: junit-test-results path: '**/build/test-results/*/TEST-*.xml' retention-days: 1 + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + if: always() + with: + files: | + **/build/test-results/test/TEST-*.xml' + **/build/test-results/integrationTest/TEST-*.xml' diff --git a/.github/workflows/report.yml b/.github/workflows/report.yml deleted file mode 100644 index 95d3496..0000000 --- a/.github/workflows/report.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: report -on: - workflow_run: - workflows: ["Build and Test"] - types: - - completed - -permissions: - checks: write - -jobs: - checks: - runs-on: ubuntu-latest - steps: - - name: Download Test Report - uses: dawidd6/action-download-artifact@v2 - with: - name: junit-test-results - workflow: ${{ github.event.workflow.id }} - run_id: ${{ github.event.workflow_run.id }} - - name: Publish Test Report - uses: mikepenz/action-junit-report@v5 - with: - commit: ${{github.event.workflow_run.head_sha}} - report_paths: '**/build/test-results/*/TEST-*.xml'