File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,16 @@ jobs:
7878
7979 - name : Run init tests on Windows
8080 if : matrix.os == 'windows-latest'
81- id : run_init_tests_windows
82- continue-on-error : true
8381 shell : pwsh
82+ run : |
83+ $ErrorActionPreference = "Stop"
84+ & ./integration-tests/run.ps1
85+ if ($LASTEXITCODE -ne 0) {
86+ Write-Error "Integration tests failed with exit code $LASTEXITCODE"
87+ exit $LASTEXITCODE
88+ }
8489 env :
8590 CODACY_API_TOKEN : ${{ secrets.CODACY_API_TOKEN }}
86- run : |
87- ./integration-tests/run.ps1
8891
8992 - name : Run init tests on Unix
9093 if : matrix.os != 'windows-latest'
Original file line number Diff line number Diff line change @@ -88,7 +88,13 @@ function Compare-Files {
8888 $dirname = $_.Name
8989 if ($dirname -eq " logs" ) { return }
9090
91- $actualSubDir = Join-Path $actualDir $dirname
91+ # Handle .codacy directory specially
92+ if ($dirname -eq " .codacy" ) {
93+ $actualSubDir = $actualDir
94+ } else {
95+ $actualSubDir = Join-Path $actualDir $dirname
96+ }
97+
9298 if (-not (Test-Path $actualSubDir )) {
9399 Write-Host " ❌ Directory $label /$dirname does not exist in actual output"
94100 Write-Host " Expected: $ ( $_.FullName ) "
You can’t perform that action at this time.
0 commit comments