From 39a4cdc105638894648e4b8733850be7d6b6b05a Mon Sep 17 00:00:00 2001 From: Pranish Nepal Date: Mon, 1 Jun 2026 11:29:36 -0400 Subject: [PATCH] ci: add a step to run integ tests on PRs This commit adds a step to the build-and-test worflow to run integ tests on PRs. Ticket: WAL-1505 --- .github/workflows/build-and-test.yaml | 11 +++++++++++ scripts/run-integration-tests.sh | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 0aa935c..b11b879 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -135,6 +135,17 @@ jobs: branch: ${{ github.head_ref || github.ref_name }} project: BitGo/advanced-wallets + integration-test: + name: Integration Test + runs-on: ubuntu-latest + needs: [build] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Integration Test (Docker) + run: npm run docker:test:integration + test: name: Test runs-on: ubuntu-latest diff --git a/scripts/run-integration-tests.sh b/scripts/run-integration-tests.sh index 68fbe54..1c18d7d 100755 --- a/scripts/run-integration-tests.sh +++ b/scripts/run-integration-tests.sh @@ -4,6 +4,6 @@ set -e echo "Running integration tests..." -trap 'docker-compose -f docker-compose.integ.yml down' EXIT +trap 'docker compose -f docker-compose.integ.yml down' EXIT -docker-compose -f docker-compose.integ.yml up --build --abort-on-container-exit +docker compose -f docker-compose.integ.yml up --build --abort-on-container-exit