Skip to content

Commit 7e479c1

Browse files
author
Petr Sramek
committed
test result directory updated
1 parent ea6b5f4 commit 7e479c1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ jobs:
8484
with:
8585
dotnet-version: ${{ vars.DOTNET_SDK_VERSION }}
8686
- name: Test with .NET ${{ vars.DOTNET_SDK_VERSION }}
87-
run: dotnet test ${{ vars.TEST_SEARCH_PATTERN }} --configuration ${{ vars.BUILD_CONFIGURATION }} --verbosity normal --settings unit-test.runsettings -- --coverage --coverage-output-format cobertura --report-trx
87+
run: dotnet test ${{ vars.TEST_SEARCH_PATTERN }} --configuration ${{ vars.BUILD_CONFIGURATION }} --verbosity normal --settings unit-test.runsettings -- --coverage --coverage-output-format cobertura --report-trx --results-directory ${{ runner.temp }}/test-results/
8888
- name: Upload Test Results
8989
uses: actions/upload-artifact@v4
9090
with:
9191
name: test-results
9292
path: |
93-
**/test-results/*
93+
${{ runner.temp }}/test-results/*
9494
- run: dotnet tool install --global LiquidTestReports.Cli --prerelease
9595
- run: liquid --inputs "File=**/*.trx" --output-file test-report.md
9696
- run: cat test-report.md >> $GITHUB_STEP_SUMMARY
9797
name: Write Test Results Summary
9898
- run: dotnet tool update --global dotnet-coverage
9999
name: Update dotnet-coverage tool
100-
- run: dotnet-coverage merge --output test-result.cobertura.xml --output-format cobertura "test-results/**/*.coverage"
100+
- run: dotnet-coverage merge --output test-result.cobertura.xml --output-format cobertura "${{ runner.temp }}/test-results/**/*.coverage"
101101
name: Merge Code Coverage Results
102102
- run: dotnet tool update --global dotnet-reportgenerator-globaltool
103103
name: Update dotnet-reportgenerator-globaltool tool

0 commit comments

Comments
 (0)