Skip to content

Commit 902a4e1

Browse files
committed
Fix volumes
1 parent cf148c0 commit 902a4e1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ jobs:
5353
run: |
5454
$tmp_file = New-TemporaryFile
5555
"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)
5857
if ($output -ne 'success') {
5958
exit 1
6059
}
@@ -104,8 +103,7 @@ jobs:
104103
run: |
105104
$tmp_file = New-TemporaryFile
106105
"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)
109107
if ($output -ne 'success') {
110108
exit 1
111109
}

0 commit comments

Comments
 (0)