Skip to content

Commit ae87831

Browse files
committed
Fixed build-test-windows.yml
Signed-off-by: Daniel Fiala <danfiala23@gmail.com>
1 parent 17332aa commit ae87831

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,5 @@ jobs:
110110
}
111111
112112
- name: Test for npm
113-
run: docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} npm --version
113+
# We need to use powershell.exe to run npm because docker needs to attach to process and npm is a batch file/powershell script
114+
run: docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} powershell.exe npm --version

22/windowsservercore-ltsc2019/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/windows/servercore:ltsc2019 as installer
1+
FROM mcr.microsoft.com/windows/servercore:ltsc2019
22

33
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
44

@@ -18,5 +18,3 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl
1818
Remove-Item node.zip -Force ; \
1919
node --version; \
2020
npm --version;
21-
22-
CMD [ "node.exe" ]

22/windowsservercore-ltsc2022/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/windows/servercore:ltsc2022 as installer
1+
FROM mcr.microsoft.com/windows/servercore:ltsc2022
22

33
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
44

@@ -18,5 +18,3 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl
1818
Remove-Item node.zip -Force ; \
1919
node --version; \
2020
npm --version;
21-
22-
CMD [ "node.exe" ]

Dockerfile-windows.template

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/windows/servercore:version as installer
1+
FROM mcr.microsoft.com/windows/servercore:version
22

33
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
44

@@ -18,5 +18,3 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl
1818
Remove-Item node.zip -Force ; \
1919
node --version; \
2020
npm --version;
21-
22-
CMD [ "node.exe" ]

0 commit comments

Comments
 (0)