Skip to content

Commit b075a41

Browse files
committed
Fixed test for node version
1 parent e5f9c89 commit b075a41

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-test-windows.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ jobs:
4545
$image_node_version = (docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()
4646
Write-Host "Expected: '${{ matrix.version }}', Got: '$image_node_version'"
4747
if ($image_node_version -ne ${{ matrix.version }}) {
48+
Write-Host "Node version mismatch"
4849
exit 1
4950
}
51+
52+
exit 0
5053
5154
- name: Verify entrypoint runs regular, non-executable files with node
5255
shell: pwsh
@@ -95,8 +98,11 @@ jobs:
9598
$image_node_version = (docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()
9699
Write-Host "Expected: '${{ matrix.version }}', Got: '$image_node_version'"
97100
if ($image_node_version -ne ${{ matrix.version }}) {
98-
exit 2
101+
Write-Host "Node version mismatch"
102+
exit 1
99103
}
104+
105+
exit 0
100106
101107
- name: Verify entrypoint runs regular, non-executable files with node
102108
shell: pwsh

0 commit comments

Comments
 (0)