diff --git a/.github/workflows/ci-publish-unit-test-results.yml b/.github/workflows/ci-publish-unit-test-results.yml new file mode 100644 index 00000000000..4ad1b6cbc7c --- /dev/null +++ b/.github/workflows/ci-publish-unit-test-results.yml @@ -0,0 +1,21 @@ +name: Publish Unit Test Results + +on: + workflow_run: + workflows: ["Unit Tests"] + types: + - completed + +jobs: + unit-test-results: + name: Unit Test Results + runs-on: ubuntu-latest + if: github.event.workflow_run.event == 'pull_request' + + steps: + - name: Download and Publish Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + with: + commit: ${{ github.event.workflow_run.head_sha }} + github_token: ${{ secrets.GITHUB_TOKEN }} + files: "**/*.xml"