Skip to content

Commit 041b79a

Browse files
committed
Fixed verify entrypoint
1 parent fae7b16 commit 041b79a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: |
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'"
47-
if ($image_node_version -ne ${{ matrix.version }}) {
47+
if ($image_node_version -ne "${{ matrix.version }}") {
4848
exit 1
4949
}
5050
@@ -53,7 +53,7 @@ jobs:
5353
run: |
5454
$tmp_file = New-TemporaryFile
5555
"console.log('success')" | Out-File -FilePath $tmp_file -Encoding utf8
56-
$output = (docker run --rm -v "${{ github.workspace }}\$tmp_file:/app/index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
56+
$output = (docker run --rm -v "${{ github.workspace }}$tmp_file:/app/index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
5757
if ($output -ne 'success') {
5858
exit 1
5959
}
@@ -94,10 +94,6 @@ jobs:
9494
run: |
9595
$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'"
97-
$bytes = [System.Text.Encoding]::UTF8.GetBytes("${{ matrix.version }}")
98-
Write-Host "Matrix version bytes: $bytes"
99-
$bytes = [System.Text.Encoding]::UTF8.GetBytes($image_node_version)
100-
Write-Host "Image version bytes: $bytes"
10197
if ($image_node_version -ne "${{ matrix.version }}") {
10298
exit 1
10399
}
@@ -107,7 +103,7 @@ jobs:
107103
run: |
108104
$tmp_file = New-TemporaryFile
109105
"console.log('success')" | Out-File -FilePath $tmp_file -Encoding utf8
110-
$output = (docker run --rm -v "${{ github.workspace }}\$tmp_file:/app/index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
106+
$output = (docker run --rm -v "${{ github.workspace }}$tmp_file:/app/index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
111107
if ($output -ne 'success') {
112108
exit 1
113109
}

0 commit comments

Comments
 (0)