20
20
timeout-minutes : 60
21
21
strategy :
22
22
fail-fast : false
23
- matrix :
24
- version : [ 22.7.0 ]
23
+ matrix :
24
+ version : [ " 22.8.0" ]
25
25
variant : [ "windows-2019" ]
26
26
27
27
steps :
@@ -43,23 +43,23 @@ jobs:
43
43
- name : Test for node version
44
44
shell : pwsh
45
45
run : |
46
- $image_node_version = (docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()
46
+ $image_node_version = (docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()
47
47
Write-Host "Expected: '${{ matrix.version }}', Got: '$image_node_version'"
48
48
if ($image_node_version -ne "${{ matrix.version }}") {
49
- exit 1
49
+ exit 1
50
50
}
51
-
51
+
52
52
- name : Verify entrypoint runs regular, non-executable files with node
53
53
shell : pwsh
54
54
run : |
55
- $tempDir = New-Item -ItemType Directory -Path $env:TEMP -Name "tempNodeApp"
55
+ $tempDir = New-Item -ItemType Directory -Path $env:TEMP -Name "tempNodeApp"
56
56
$tmp_file = Join-Path $tempDir "index.js"
57
57
"console.log('success')" | Out-File -FilePath $tmp_file -Encoding utf8
58
58
$output = (docker run --rm -w /app --mount "type=bind,src=$tempDir,target=c:\app" node:${{ matrix.version }}-${{ matrix.variant }} C:/app/index.js)
59
59
if ($output -ne 'success') {
60
60
Write-Host "Invalid"
61
61
}
62
-
62
+
63
63
- name : Test for npm
64
64
run : docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} npm --version
65
65
69
69
timeout-minutes : 60
70
70
strategy :
71
71
fail-fast : false
72
- matrix :
73
- version : [ "22.7 .0" ]
72
+ matrix :
73
+ version : [ "22.8 .0" ]
74
74
variant : [ "windows-2022" ]
75
75
76
76
steps :
@@ -92,22 +92,22 @@ jobs:
92
92
- name : Test for node version
93
93
shell : pwsh
94
94
run : |
95
- $image_node_version = (docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()
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
97
if ($image_node_version -ne "${{ matrix.version }}") {
98
98
exit 1
99
99
}
100
-
100
+
101
101
- name : Verify entrypoint runs regular, non-executable files with node
102
102
shell : pwsh
103
103
run : |
104
- $tempDir = New-Item -ItemType Directory -Path $env:TEMP -Name "tempNodeApp"
104
+ $tempDir = New-Item -ItemType Directory -Path $env:TEMP -Name "tempNodeApp"
105
105
$tmp_file = Join-Path $tempDir "index.js"
106
106
"console.log('success')" | Out-File -FilePath $tmp_file -Encoding utf8
107
107
$output = (docker run --rm -w /app --mount "type=bind,src=$tempDir,target=c:\app" node:${{ matrix.version }}-${{ matrix.variant }} C:/app/index.js)
108
108
if ($output -ne 'success') {
109
109
Write-Host "Invalid"
110
110
}
111
-
111
+
112
112
- name : Test for npm
113
- run : docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} npm --version
113
+ run : docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} npm --version
0 commit comments