Skip to content

Commit ad2fa1a

Browse files
committed
Fix verify
1 parent eb8a845 commit ad2fa1a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ 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 "${tmp_file}:/app/index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
56+
$dockerPath = $tmp_file.FullName.Replace('\', '/')
57+
$output = (docker run --rm -v "$dockerPath:/app/index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
5758
if ($output -ne 'success') {
5859
exit 1
5960
}
@@ -103,7 +104,8 @@ jobs:
103104
run: |
104105
$tmp_file = New-TemporaryFile
105106
"console.log('success')" | Out-File -FilePath $tmp_file -Encoding utf8
106-
$output = (docker run --rm -v "${tmp_file}:/app/index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
107+
$dockerPath = $tmp_file.FullName.Replace('\', '/')
108+
$output = (docker run --rm -v "$dockerPath:/app/index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
107109
if ($output -ne 'success') {
108110
exit 1
109111
}

0 commit comments

Comments
 (0)