From 0b29d82a742a4515645ad3dfcbed7bcd55b9c7e1 Mon Sep 17 00:00:00 2001 From: Ricky C Date: Tue, 8 Jun 2021 22:07:43 -0700 Subject: [PATCH] ci: Fix test reporter --- .github/workflows/test-report.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-report.yaml b/.github/workflows/test-report.yaml index c9d8b14f..ebff0619 100644 --- a/.github/workflows/test-report.yaml +++ b/.github/workflows/test-report.yaml @@ -27,8 +27,17 @@ jobs: # Would be easy to add to the [downloadArtifact method](https://github.com/actions/toolkit/blob/main/packages/artifact/src/internal/artifact-client.ts#L132) and thus expose to the action. # But I'm not motifcated enough to push that through right now. # name: /test-results_(.*)/ + commit: ${{ github.workflow_run.head_sha }} workflow_conclusion: completed - workflow: ci.yml + workflow: ci.yaml + + - name: Move files + run: | + for folder in test-results_*; do + mv "$folder/TestResult.xml" "$folder.xml" + rmdir "$folder" + done + shell: bash - name: Install NUnit run: | @@ -48,7 +57,6 @@ jobs: - uses: dorny/test-reporter@v1.4.2 with: - # artifact: /test-results_(.*)/ name: "NUnit tests for $1" path: "*_junit.xml" reporter: jest-junit