Skip to content

Commit 1ceebc7

Browse files
committed
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
1 parent fe7e9ba commit 1ceebc7

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/build-and-test.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,19 @@ jobs:
135135
branch: ${{ github.head_ref || github.ref_name }}
136136
project: BitGo/advanced-wallets
137137

138+
integration-test:
139+
name: Integration Test
140+
runs-on: ubuntu-latest
141+
needs: [build]
142+
steps:
143+
- name: Checkout
144+
uses: actions/checkout@v4
145+
146+
- name: Integration Test (Docker)
147+
run: npm run docker:test:integration
148+
138149
test:
139-
name: Test
150+
name: Unit Test
140151
runs-on: ubuntu-latest
141152
steps:
142153
- name: Checkout

scripts/run-integration-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ set -e
44

55
echo "Running integration tests..."
66

7-
trap 'docker-compose -f docker-compose.integ.yml down' EXIT
7+
trap 'docker compose -f docker-compose.integ.yml down' EXIT
88

9-
docker-compose -f docker-compose.integ.yml up --build --abort-on-container-exit
9+
docker compose -f docker-compose.integ.yml up --build --abort-on-container-exit

0 commit comments

Comments
 (0)