Skip to content

Commit fef0098

Browse files
committed
Fixed test for version
1 parent eb3a040 commit fef0098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Test for node version
4343
shell: pwsh
4444
run: |
45-
$image_node_version = (docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node")
45+
$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 }}) {
4848
exit 1
@@ -92,7 +92,7 @@ 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")
95+
$image_node_version = (docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()
9696
Write-Host "Expected: '${{ matrix.version }}', Got: '$image_node_version'"
9797
if ($image_node_version -ne ${{ matrix.version }}) {
9898
exit 1

0 commit comments

Comments
 (0)