Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
# Required for local tests
- name: Setup MetaCall CLI
run: wget -O - https://raw.githubusercontent.com/metacall/install/master/install.sh | sh

- name: Setup MetaCall CLI and Python Bindings
run: |
wget -O - https://raw.githubusercontent.com/metacall/install/master/install.sh | sh
pip3 install metacall
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
Expand All @@ -40,21 +41,21 @@ jobs:
echo 'METACALL_AUTH_PASSWORD="${{ secrets.METACALL_AUTH_PASSWORD }}"' >> .env
npm run coverage

# # TODO: This depends on: https://github.com/metacall/faas/issues/78
# - name: Run Tests (local)
# run: |
# cd ..
# git clone https://github.com/metacall/faas.git
# cd faas
# npm install
# npm run build
# node dist/index.js --version
# cd ../deploy
# export TEST_DEPLOY_LOCAL="true"
# node ../faas/dist/index.js &
# sleep 10
# mv .env.example .env
# npm run coverage
# Run local tests integrating to faas for pull requests to ensure that the CLI works correctly without relying on the production environment
- name: Run Tests (local)
run: |
cd ..
git clone https://github.com/metacall/faas.git
cd faas
npm install
npm run build
node dist/index.js --version
cd ../deploy
export TEST_DEPLOY_LOCAL="true"
node ../faas/dist/index.js &
sleep 10
mv .env.example .env
npm run coverage

- name: Publish
uses: JS-DevTools/npm-publish@v1
Expand Down
Loading