Skip to content

Commit

Permalink
Fixed build-test-windows.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Fiala <[email protected]>
  • Loading branch information
zZHorizonZz committed Sep 20, 2024
1 parent 17332aa commit ae87831
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,5 @@ jobs:
}
- name: Test for npm
run: docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} npm --version
# We need to use powershell.exe to run npm because docker needs to attach to process and npm is a batch file/powershell script
run: docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} powershell.exe npm --version
4 changes: 1 addition & 3 deletions 22/windowsservercore-ltsc2019/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/windows/servercore:ltsc2019 as installer
FROM mcr.microsoft.com/windows/servercore:ltsc2019

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

Expand All @@ -18,5 +18,3 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl
Remove-Item node.zip -Force ; \
node --version; \
npm --version;

CMD [ "node.exe" ]
4 changes: 1 addition & 3 deletions 22/windowsservercore-ltsc2022/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/windows/servercore:ltsc2022 as installer
FROM mcr.microsoft.com/windows/servercore:ltsc2022

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

Expand All @@ -18,5 +18,3 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl
Remove-Item node.zip -Force ; \
node --version; \
npm --version;

CMD [ "node.exe" ]
4 changes: 1 addition & 3 deletions Dockerfile-windows.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/windows/servercore:version as installer
FROM mcr.microsoft.com/windows/servercore:version

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

Expand All @@ -18,5 +18,3 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl
Remove-Item node.zip -Force ; \
node --version; \
npm --version;

CMD [ "node.exe" ]

0 comments on commit ae87831

Please sign in to comment.