Skip to content

Commit f845936

Browse files
committed
fx script
1 parent f2ea65d commit f845936

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/it-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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'

integration-tests/run.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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)"

0 commit comments

Comments
 (0)