fixed windows white space installation issue #30 (#31) #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Install Metacall on Windows Test | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
install-default: | |
name: Install Metacall via Default Installation | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Metacall | |
run: | | |
cmd.exe /c "powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1" | |
- name: NodeJS Test | |
shell: cmd | |
run: | | |
metacall ./test/script.js | findstr "123456" | |
IF %ERRORLEVEL% NEQ 0 exit /B 1 | |
- name: Python Test | |
shell: cmd | |
run: | | |
metacall pip install -r test/requirements.txt | findstr "Successfully installed" | |
IF %ERRORLEVEL% NEQ 0 exit /B 1 | |
metacall ./test/requirements.py | findstr "123456" | |
IF %ERRORLEVEL% NEQ 0 exit /B 1 | |
- name: Deploy & FaaS Test | |
shell: cmd | |
run: | | |
metacall deploy --version | findstr /R "^v.*\..*\..*" | |
IF %ERRORLEVEL% NEQ 0 exit /B 1 | |
metacall faas --version | findstr /R "^v.*\..*\..*" | |
IF %ERRORLEVEL% NEQ 0 exit /B 1 | |
install-from-path: | |
name: Install Metacall via Path Installation | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download Tarball | |
shell: pwsh | |
run: | | |
$request = Invoke-WebRequest -UseBasicParsing -Method Head -Uri https://github.com/metacall/distributable-windows/releases/latest | |
$redirectUri = $request.BaseResponse.RequestMessage.RequestUri | |
$version = $redirectUri.Segments[$redirectUri.Segments.Count - 1] | |
$url = "https://github.com/metacall/distributable-windows/releases/download/$version/metacall-tarball-win-x64.zip" | |
Invoke-WebRequest $url -OutFile metacall-tarball-win-x64.zip | |
- name: Install MetaCall | |
run: | | |
cmd.exe /c "powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1 -FromPath metacall-tarball-win-x64.zip" | |
- name: NodeJS Test | |
shell: cmd | |
run: | | |
metacall ./test/script.js | findstr "123456" | |
IF %ERRORLEVEL% NEQ 0 exit /B 1 | |
- name: Python Test | |
shell: cmd | |
run: | | |
metacall pip install -r test/requirements.txt | findstr "Successfully installed" | |
IF %ERRORLEVEL% NEQ 0 exit /B 1 | |
metacall ./test/requirements.py | findstr "123456" | |
IF %ERRORLEVEL% NEQ 0 exit /B 1 | |
- name: Deploy & FaaS Test | |
shell: cmd | |
run: | | |
metacall deploy --version | findstr /R "^v.*\..*\..*" | |
IF %ERRORLEVEL% NEQ 0 exit /B 1 | |
metacall faas --version | findstr /R "^v.*\..*\..*" | |
IF %ERRORLEVEL% NEQ 0 exit /B 1 |