Skip to content

Commit a3ab449

Browse files
committed
Test
1 parent 46dab56 commit a3ab449

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ jobs:
9292
- name: Test for node version
9393
shell: pwsh
9494
run: |
95-
$image_node_version = (docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()
96-
Write-Host "Expected: '${{ matrix.version }}', Got: '$image_node_version'"
97-
if (22.0.7 -ne ${{ matrix.version }}) {
98-
exit 1
95+
$image_node_version = ([System.Text.Encoding]::UTF8.GetString(([System.Text.Encoding]::UTF8.GetBytes((docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()))))
96+
$expected_version = ([System.Text.Encoding]::UTF8.GetString(([System.Text.Encoding]::UTF8.GetBytes(${{ matrix.version }}))))
97+
Write-Host "Expected: '$expected_version', Got: '$image_node_version'"
98+
if ($image_node_version -ne $expected_version) {
99+
exit 1
99100
}
100101
101102
- name: Verify entrypoint runs regular, non-executable files with node

0 commit comments

Comments
 (0)