diff --git a/.github/workflows/lint_test_build.yml b/.github/workflows/lint_test_build.yml index 78946e898a..46bde26777 100644 --- a/.github/workflows/lint_test_build.yml +++ b/.github/workflows/lint_test_build.yml @@ -102,6 +102,27 @@ jobs: run: | npx @stoplight/spectral-cli lint ./packages/token-introspection/openapi/*.yaml + integration-test: + runs-on: ubuntu-22.04 + needs: checkout + 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 host.docker.internal" | sudo tee -a /etc/hosts + + - name: Build dependencies + run: pnpm --filter integration build:deps + + - name: Run tests + run: pnpm --filter integration run-tests + build: runs-on: ubuntu-22.04 timeout-minutes: 5 @@ -120,5 +141,6 @@ jobs: runs-on: ubuntu-22.04 needs: - build + - integration-test steps: - run: echo 'PR Checks Passed' diff --git a/test/integration/package.json b/test/integration/package.json index a06b8bb6a3..c9b8671819 100644 --- a/test/integration/package.json +++ b/test/integration/package.json @@ -4,7 +4,8 @@ "version": "1.0.0", "description": "", "scripts": { - "testenv:compose": "docker-compose -f ./testenv/cloud-nine-wallet/docker-compose.yml -f ./testenv/happy-life-bank/docker-compose.yml -f ./testenv/docker-compose.yml", + "build:deps": "pnpm --filter mock-account-service-lib build", + "testenv:compose": "docker compose -f ./testenv/cloud-nine-wallet/docker-compose.yml -f ./testenv/happy-life-bank/docker-compose.yml -f ./testenv/docker-compose.yml", "test": "jest", "run-tests": "./scripts/run-tests.sh" },