diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8e86a2..8ea0358 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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