Skip to content

Commit

Permalink
Add new test case and typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Oct 14, 2024
1 parent c53b6ac commit 6e26c5d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Install Metacall on Linux Test
name: Install MetaCall on Linux Test

on: [push, pull_request, workflow_dispatch]

Expand All @@ -25,7 +25,7 @@ jobs:
ref: master

install-local:
name: Install Metacall via Default Installation (local)
name: Install MetaCall via Default Installation (local)
runs-on: ubuntu-latest
if: always()
needs: trigger-cli-build
Expand All @@ -35,7 +35,7 @@ jobs:
run: ./test.sh

install-remote:
name: Install Metacall via Default Installation (remote)
name: Install MetaCall via Default Installation (remote)
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
needs: trigger-cli-build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Install Metacall on MacOs Test
name: Install MetaCall on MacOs Test

on: [push, pull_request, workflow_dispatch]

Expand All @@ -8,15 +8,15 @@ concurrency:

jobs:
install-default:
name: Install Metacall via Default Installation
name: Install MetaCall via Default Installation
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Metacall
- name: Install MetaCall
env:
INSTALL_DEBUG: 1
run: ./install.sh
Expand All @@ -33,7 +33,7 @@ jobs:
metacall faas --version | grep -E "^v.*\..*\..*"
install-from-path:
name: Install Metacall via Path Installation
name: Install MetaCall via Path Installation
strategy:
fail-fast: false
matrix:
Expand Down
47 changes: 41 additions & 6 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Install Metacall on Windows Test
name: Install MetaCall on Windows Test

on: [push, pull_request, workflow_dispatch]

Expand All @@ -8,13 +8,14 @@ concurrency:

jobs:
install-default:
name: Install Metacall via Default Installation
name: Install MetaCall via Default Installation
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Metacall
- name: Install MetaCall
shell: cmd
run: |
cmd.exe /c "powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1"
powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1
- name: NodeJS Test
shell: cmd
run: |
Expand All @@ -36,7 +37,7 @@ jobs:
IF %ERRORLEVEL% NEQ 0 exit /B 1
install-from-path:
name: Install Metacall via Path Installation
name: Install MetaCall via Path Installation
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -49,8 +50,42 @@ jobs:
$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
shell: cmd
run: |
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
install-path-with-whitespaces:
name: Install MetaCall via Path With Whitespaces
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Create install folder
shell: cmd
run: |
mkdir "install folder with spaces"
- name: Install MetaCall
shell: cmd
run: |
cmd.exe /c "powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1 -FromPath metacall-tarball-win-x64.zip"
powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1 -InstallDir '%cd%\install folder with spaces'
- name: NodeJS Test
shell: cmd
run: |
Expand Down

0 comments on commit 6e26c5d

Please sign in to comment.