Skip to content

Commit 24e2c3d

Browse files
author
Petr Sramek
committed
read ${{ runner.temp }}/test-results/ directory writ elist of contents
1 parent eabb64c commit 24e2c3d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/dotnet.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,16 @@ 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 }} --logger "liquid.md" --configuration ${{ vars.BUILD_CONFIGURATION }} --verbosity normal --settings unit-test.runsettings -- --coverage --coverage-output-format cobertura --report-trx --results-directory ${{ runner.temp }}/test-results/
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: |
9393
${{ runner.temp }}/test-results/*
94-
# - run: dotnet tool install --global LiquidTestReports.Cli --prerelease
95-
# - run: ls -d
96-
# working-directory: ${{ runner.temp }}/test-results/
97-
# - run: liquid --inputs "Folder=${{ runner.temp }}/test-results/;File=**/*.trx;Format=Trx" --output-file ${{ runner.temp }}/test-results/test-report.md
94+
- run: dotnet tool install --global LiquidTestReports.Cli --prerelease
95+
- run: ls -R ${{ runner.temp }}/test-results/
96+
- run: liquid --inputs "Folder=${{ runner.temp }}/test-results/;File=**/*.trx;Format=Trx" --output-file ${{ runner.temp }}/test-results/test-report.md
9897
- run: cat ${{ runner.temp }}/test-results/*.md >> $GITHUB_STEP_SUMMARY
9998
name: Write Test Results Summary
10099
- run: dotnet tool update --global dotnet-coverage

0 commit comments

Comments
 (0)