44
44
run : |
45
45
$image_node_version = (docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()
46
46
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 }}" ) {
48
48
exit 1
49
49
}
50
50
53
53
run : |
54
54
$tmp_file = New-TemporaryFile
55
55
"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)
57
57
if ($output -ne 'success') {
58
58
exit 1
59
59
}
94
94
run : |
95
95
$image_node_version = (docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()
96
96
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"
101
97
if ($image_node_version -ne "${{ matrix.version }}") {
102
98
exit 1
103
99
}
@@ -107,7 +103,7 @@ jobs:
107
103
run : |
108
104
$tmp_file = New-TemporaryFile
109
105
"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)
111
107
if ($output -ne 'success') {
112
108
exit 1
113
109
}
0 commit comments