From 7057962b221c0d5358eadb432c638bbc3efe43e0 Mon Sep 17 00:00:00 2001 From: Harshvir Potpose Date: Thu, 19 Oct 2023 17:33:17 +0530 Subject: [PATCH] add workflow for publising unit test results Signed-off-by: Harshvir Potpose --- .../ci-publish-unit-test-results.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ci-publish-unit-test-results.yml 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"