From d0cd643c4584a5dc6f5c94c1c1a09e41817130ce Mon Sep 17 00:00:00 2001 From: Andre Hofmeister <9199345+HofmeisterAn@users.noreply.github.com> Date: Sat, 10 Feb 2024 21:04:50 +0100 Subject: [PATCH] fix: Upload pipeline artifacts with v3 task --- .github/workflows/cicd.yml | 9 +++++++++ .github/workflows/test-report.yml | 8 ++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 0f209beac..4d88fe157 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -78,6 +78,15 @@ jobs: - name: Run Tests run: dotnet cake --target=Tests --test-filter=${{ startsWith(matrix.os, 'ubuntu') && 'FullyQualifiedName~Testcontainers' || 'DockerPlatform=Windows' }} + # The Test Reporter GH Action is not yet compatible with the recent + # actions/upload-artifact updates: https://github.com/dorny/test-reporter/issues/363. + - name: Upload Test And Coverage Results + uses: actions/upload-artifact@v3 + if: true + with: + name: ${{ matrix.os }}-v3 + path: test-results + - name: Upload Test And Coverage Results uses: actions/upload-artifact@v4 if: true diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml index 34aa448e6..8a4b767c4 100644 --- a/.github/workflows/test-report.yml +++ b/.github/workflows/test-report.yml @@ -13,7 +13,7 @@ jobs: matrix: os: [ ubuntu-22.04, windows-2022 ] - runs-on: ubuntu-22.04 + runs-on: ${{ matrix.os }} permissions: actions: read @@ -21,10 +21,10 @@ jobs: contents: read steps: - - name: Publish '${{ matrix.os }}' Test Report - uses: dorny/test-reporter@v1 + - name: Publish Test Report + uses: dorny/test-reporter@v1.8.0 with: - artifact: ${{ matrix.os }} + artifact: ${{ matrix.os }}-v3 name: ${{ matrix.os }} path: '*.trx' reporter: dotnet-trx