Skip to content

Commit

Permalink
fix: Upload pipeline artifacts with v3 task
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Feb 10, 2024
1 parent 9764f33 commit d0cd643
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
matrix:
os: [ ubuntu-22.04, windows-2022 ]

runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}

permissions:
actions: read
checks: write
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

0 comments on commit d0cd643

Please sign in to comment.