Skip to content

Commit daddccc

Browse files
authored
Merge pull request #330 from AArnott/fixTestResults
Fix test logs collection
2 parents 6ad0c94 + fadd4eb commit daddccc

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.github/actions/publish-artifacts/action.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ runs:
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

tools/artifacts/testResults.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ $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"
1112
if (Test-Path $testlogsPath) {
1213
$result[$testlogsPath] = Get-ChildItem "$testlogsPath\*";
1314
}

0 commit comments

Comments
 (0)