Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/reusable_run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
dotnet --version

- name: Run tests
run: dotnet test $SOLUTION --configuration $BUILD_CONFIG --framework ${{ matrix.dotnet.tfm }} --logger trx --results-directory "TestResults-${{ matrix.dotnet.version }}" /p:CollectCoverage=true /maxcpucount:1
run: dotnet test $SOLUTION --configuration $BUILD_CONFIG --framework ${{ matrix.dotnet.tfm }} --logger trx --results-directory "TestResults" /maxcpucount:1 /p:CollectCoverage=true /p:CoverletOutput="../TestResults/" /p:MergeWith="../TestResults/coverage.json" /p:CoverletOutputFormat="cobertura" --verbosity normal

- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: dotnet-test-results-${{ matrix.dotnet.version }}
path: TestResults-${{ matrix.dotnet.version }}
path: TestResults

- name: Publish test report
uses: dorny/test-reporter@v1
Expand All @@ -60,3 +60,9 @@ jobs:
path: "**/*.trx"
reporter: dotnet-trx
fail-on-error: true

- name: Create Test Coverage Badge
uses: gaelgirodon/ci-badges-action@v1
with:
gist-id: a3b00492f5c856c25ee7101f4257108f
token: ${{ secrets.GIST_AUTH_TOKEN }}
Loading