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
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 }
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