File tree Expand file tree Collapse file tree 4 files changed +9
-12
lines changed
.github/actions/publish-artifacts Expand file tree Collapse file tree 4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 3232 name : build_logs-${{ runner.os }}
3333 path : ${{ runner.temp }}/_artifacts/build_logs
3434 continue-on-error : true
35- - name : 📢 Upload test_logs
36- if : always()
37- uses : actions/upload-artifact@v4
38- with :
39- name : test_logs-${{ runner.os }}
40- path : ${{ runner.temp }}/_artifacts/test_logs
41- continue-on-error : true
4235 - name : 📢 Upload testResults
4336 if : always()
4437 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 44if ($env: BUILD_ARTIFACTSTAGINGDIRECTORY ) {
55 $ArtifactStagingFolder = $env: BUILD_ARTIFACTSTAGINGDIRECTORY
66} elseif ($env: RUNNER_TEMP ) {
7- $ArtifactStagingFolder = " $env: RUNNER_TEMP \ _artifacts"
7+ $ArtifactStagingFolder = Join-Path $env: RUNNER_TEMP _artifacts
88} else {
99 $ArtifactStagingFolder = [System.IO.Path ]::GetFullPath(" $PSScriptRoot /../obj/_artifacts" )
1010 if ($CleanIfLocal -and (Test-Path $ArtifactStagingFolder )) {
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ $result = @{}
77$testRoot = Resolve-Path " $PSScriptRoot \..\..\test"
88$result [$testRoot ] = (Get-ChildItem " $testRoot \TestResults" - Recurse - Directory | Get-ChildItem - Recurse - File)
99
10- $testlogsPath = " $env: BUILD_ARTIFACTSTAGINGDIRECTORY \test_logs"
10+ $artifactStaging = & " $PSScriptRoot \..\Get-ArtifactsStagingDirectory.ps1"
11+ $testlogsPath = Join-Path $artifactStaging " test_logs"
1112if (Test-Path $testlogsPath ) {
12- $result [$testlogsPath ] = Get-ChildItem " $testlogsPath \* " ;
13+ $result [$testlogsPath ] = Get-ChildItem $testlogsPath - Recurse ;
1314}
1415
1516$result
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ if ($x86) {
4444 }
4545}
4646
47+ $testBinLog = Join-Path $ArtifactStagingFolder (Join-Path build_logs test.binlog)
48+ $testDiagLog = Join-Path $ArtifactStagingFolder (Join-Path test_logs diag.log)
49+
4750& $dotnet test $RepoRoot `
4851 -- no- build `
4952 - c $Configuration `
@@ -52,8 +55,8 @@ if ($x86) {
5255 -- settings " $PSScriptRoot /test.runsettings" `
5356 -- blame- hang- timeout 60s `
5457 -- blame- crash `
55- - bl:" $ArtifactStagingFolder /build_logs/test.binlog " `
56- -- diag " $ArtifactStagingFolder /test_logs/diag.log ;TraceLevel=info" `
58+ - bl:" $testBinLog " `
59+ -- diag " $testDiagLog ;TraceLevel=info" `
5760 -- logger trx `
5861
5962$unknownCounter = 0
You can’t perform that action at this time.
0 commit comments