Skip to content

Commit 585418c

Browse files
committed
Also upload test binaries on test failure
1 parent 9bedf2b commit 585418c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,16 @@ jobs:
4040
run: dotnet restore --locked-mode
4141
- name: dotnet test
4242
run: dotnet test --no-restore --blame-hang --blame-hang-dump-type full --blame-hang-timeout 2m -p:Platform=x64
43-
- name: Upload TestResults
44-
if: always()
43+
- name: Upload test binaries and TestResults
44+
if: failure()
4545
uses: actions/upload-artifact@v4
4646
with:
4747
name: test-results
48-
path: ./**/TestResults
48+
retention-days: 1
49+
path: |
50+
./**/bin
51+
./**/obj
52+
./**/TestResults
4953
5054
build:
5155
runs-on: windows-latest

0 commit comments

Comments
 (0)