diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f09bcc7..90291c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,9 +11,6 @@ jobs: ci: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - # Required for local tests - name: Setup MetaCall CLI run: wget -O - https://raw.githubusercontent.com/metacall/install/master/install.sh | sh @@ -24,6 +21,19 @@ jobs: node-version: '20' registry-url: https://registry.npmjs.org + - name: Setup MetaCall FaaS + run: | + git clone https://github.com/metacall/faas.git + cd faas + npm install + npm run build + npm install -g $(pwd) + cd .. + rm -rf faas + + - name: Checkout + uses: actions/checkout@v4 + - name: Installing Dependencies run: npm i @@ -35,13 +45,6 @@ jobs: - name: Run Tests (local) run: | - git clone https://github.com/metacall/faas.git - cd faas - npm install - npm run build - npm install -g $(pwd) - cd .. - rm -rf faas export TEST_DEPLOY_LOCAL="true" metacall-faas & sleep 10