From 6649d9218068c78a3ea4b9d5b289acf854194d34 Mon Sep 17 00:00:00 2001 From: golobitch Date: Tue, 2 Apr 2024 20:36:05 +0200 Subject: [PATCH] fix(workflows): add missing integration test --- .github/workflows/node-build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/node-build.yml b/.github/workflows/node-build.yml index 17f652b6e8..53ddbc8078 100644 --- a/.github/workflows/node-build.yml +++ b/.github/workflows/node-build.yml @@ -134,6 +134,29 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 + integration-test: + runs-on: ubuntu-22.04 + needs: prerequisite + timeout-minutes: 5 + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup environment + uses: ./.github/workflows/rafiki/env-setup + + - name: Setup hosts + run: | + echo "127.0.0.1 cloud-nine-wallet-test-backend" | sudo tee -a /etc/hosts + echo "127.0.0.1 cloud-nine-wallet-test-auth" | sudo tee -a /etc/hosts + echo "127.0.0.1 happy-life-bank-test-backend" | sudo tee -a /etc/hosts + echo "127.0.0.1 happy-life-bank-test-auth" | sudo tee -a /etc/hosts + - name: Build dependencies + run: pnpm --filter integration build:deps + + - name: Run tests + run: pnpm --filter integration run-tests + node-build: runs-on: ubuntu-latest timeout-minutes: 5