File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 53
53
run : |
54
54
$tmp_file = New-TemporaryFile
55
55
"console.log('success')" | Out-File -FilePath $tmp_file -Encoding utf8
56
- $dockerPath = $tmp_file.FullName.Replace('\', '/')
57
- $output = (docker run --rm -v "${dockerPath}:/app/index.js:r" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
56
+ $output = (docker run --rm -v "${tmp_file}:c:\app\index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
58
57
if ($output -ne 'success') {
59
58
exit 1
60
59
}
@@ -104,8 +103,7 @@ jobs:
104
103
run : |
105
104
$tmp_file = New-TemporaryFile
106
105
"console.log('success')" | Out-File -FilePath $tmp_file -Encoding utf8
107
- $dockerPath = $tmp_file.FullName.Replace('\', '/')
108
- $output = (docker run --rm -v "${dockerPath}:/app/index.js:r" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
106
+ $output = (docker run --rm -v "${tmp_file}:c:\app\index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
109
107
if ($output -ne 'success') {
110
108
exit 1
111
109
}
You can’t perform that action at this time.
0 commit comments