diff --git a/.github/workflows/report-test-results.yaml b/.github/workflows/report-test-results.yaml deleted file mode 100644 index f1c627295e..0000000000 --- a/.github/workflows/report-test-results.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: report-test-results -run-name: Report test results for '${{ github.event.workflow_run.head_branch }}' / ${{ github.event.workflow_run.head_commit.message }} - -on: - workflow_run: - workflows: [ 'run-tests' ] - types: - - completed - -jobs: - report: - runs-on: ubuntu-latest - permissions: write-all - if: ${{ github.event.workflow_run.conclusion != 'cancelled' }} - steps: - # Cleanup Old Files - - name: Cleanup Old Files - run: rm -rf $GITHUB_WORKSPACE/*.trx - - # Download the Latest Artifacts with Unique Name - - name: Download Artifacts - uses: dawidd6/action-download-artifact@v6 - with: - run_id: ${{ github.event.workflow_run.id }} - - # Display the Structure of Downloaded Files - - name: Display structure of downloaded files - run: ls -R - - # Display the Contents of .trx Files - - name: Display .trx file contents - run: cat **/*.trx || echo "No .trx files found" - - - name: Report tests results - uses: AndreyAkinshin/test-reporter@0e2c48ebec2007001dd77dd4bcbcd450b96d5a38 - with: - name: report - path: "**/*.trx" - reporter: dotnet-trx - fail-on-error: true \ No newline at end of file diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 556b84a6cd..9b42aee823 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -29,6 +29,14 @@ jobs: - name: Run task 'in-tests-core' shell: cmd run: ./build.cmd in-tests-core -e + # Report test results with unique name + - name: Report tests results + uses: dorny/test-reporter@v2 + if: always() + with: + name: test-windows-core-${{ matrix.os }} + path: "**/*.trx" + reporter: dotnet-trx # Upload Artifacts with Unique Name - name: Upload test results uses: actions/upload-artifact@v4 @@ -60,6 +68,14 @@ jobs: - name: Run task 'in-tests-full' shell: cmd run: ./build.cmd in-tests-full -e + # Report test results with unique name + - name: Report tests results + uses: dorny/test-reporter@v2 + if: always() + with: + name: test-windows-full-${{ matrix.os }} + path: "**/*.trx" + reporter: dotnet-trx # Upload Artifacts with Unique Name - name: Upload test results uses: actions/upload-artifact@v4 @@ -100,6 +116,14 @@ jobs: run: ./build.cmd unit-tests -e - name: Run task 'in-tests-core' run: ./build.cmd in-tests-core -e + # Report test results with unique name + - name: Report tests results + uses: dorny/test-reporter@v2 + if: always() + with: + name: test-linux-${{ matrix.os }} + path: "**/*.trx" + reporter: dotnet-trx # Upload Artifacts with Unique Name - name: Upload test results uses: actions/upload-artifact@v4 @@ -139,6 +163,14 @@ jobs: run: ./build.cmd unit-tests -e - name: Run task 'in-tests-core' run: ./build.cmd in-tests-core -e + # Report test results with unique name + - name: Report tests results + uses: dorny/test-reporter@v2 + if: always() + with: + name: test-macos(${{ matrix.os.arch }}) + path: "**/*.trx" + reporter: dotnet-trx # Upload Artifacts with Unique Name - name: Upload test results uses: actions/upload-artifact@v4