Skip to content

Commit 0514396

Browse files
committed
Boot base services then run tests
1 parent d780f03 commit 0514396

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Build and start Docker Compose services then run tests
5252
run: |
5353
bash ./setup_github.sh &&
54-
docker-compose up --build --no-deps -d --scale test=0 &&
54+
docker-compose up --build --no-deps -d --profile baseServices &&
5555
docker compose run test npx cypress run --config-file cypress.config.js
5656
5757
# - name: check dns is working

docker-compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
services:
22
frontend:
3+
profiles: ["baseServices"]
34
build: ${FRONTEND_BUILD_CONTEXT}
45
ports:
56
- 3000
@@ -11,6 +12,7 @@ services:
1112
volumes:
1213
- ./repo_refs/react1-app:/app
1314
api:
15+
profiles: ["baseServices"]
1416
build: ${API_BUILD_CONTEXT}
1517
ports:
1618
- 3000
@@ -33,6 +35,7 @@ services:
3335
db:
3436
condition: service_healthy
3537
db:
38+
profiles: ["baseServices"]
3639
image: postgres
3740
ports:
3841
- 5432
@@ -50,6 +53,7 @@ services:
5053
timeout: 5s
5154
retries: 3
5255
backend:
56+
profiles: ["baseServices"]
5357
build: ${BACKEND_BUILD_CONTEXT}
5458
ports:
5559
- 3000
@@ -61,6 +65,7 @@ services:
6165
volumes:
6266
- ./repo_refs/react2-app:/app
6367
nginx:
68+
profiles: ["baseServices"]
6469
image: nginx:alpine
6570
ports:
6671
- 8089:80

0 commit comments

Comments
 (0)