Skip to content

Commit 18699ff

Browse files
committed
trying profiles
1 parent 0514396 commit 18699ff

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ 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 --profile baseServices &&
55-
docker compose run test npx cypress run --config-file cypress.config.js
54+
docker-compose --profile baseServices up --build --no-deps -d &&
55+
docker compose run test ls ./ &&
56+
docker compose run test npx cypress run --config-file ./cypress.config.js
5657
5758
# - name: check dns is working
5859
# run: cat /etc/hosts; netstat -tulpn # Use -tulpn to show TCP/UDP listeners
@@ -73,9 +74,9 @@ jobs:
7374
# config: pageLoadTimeout=100000,baseUrl=http://localhost:8089
7475
# working-directory: test/
7576

76-
# - name: Check if tests failed
77-
# if: ${{ failure() }}
78-
# uses: mxschmitt/action-tmate@v3
77+
- name: Check if tests failed
78+
if: ${{ failure() }}
79+
uses: mxschmitt/action-tmate@v3
7980

8081
- name: Save artifact
8182
uses: actions/upload-artifact@v4

docker-compose.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
frontend:
3-
profiles: ["baseServices"]
3+
profiles: ["baseServices", "full"]
44
build: ${FRONTEND_BUILD_CONTEXT}
55
ports:
66
- 3000
@@ -12,7 +12,7 @@ services:
1212
volumes:
1313
- ./repo_refs/react1-app:/app
1414
api:
15-
profiles: ["baseServices"]
15+
profiles: ["baseServices", "full"]
1616
build: ${API_BUILD_CONTEXT}
1717
ports:
1818
- 3000
@@ -35,7 +35,7 @@ services:
3535
db:
3636
condition: service_healthy
3737
db:
38-
profiles: ["baseServices"]
38+
profiles: ["baseServices", "full"]
3939
image: postgres
4040
ports:
4141
- 5432
@@ -53,7 +53,7 @@ services:
5353
timeout: 5s
5454
retries: 3
5555
backend:
56-
profiles: ["baseServices"]
56+
profiles: ["baseServices", "full"]
5757
build: ${BACKEND_BUILD_CONTEXT}
5858
ports:
5959
- 3000
@@ -65,7 +65,7 @@ services:
6565
volumes:
6666
- ./repo_refs/react2-app:/app
6767
nginx:
68-
profiles: ["baseServices"]
68+
profiles: ["baseServices", "full"]
6969
image: nginx:alpine
7070
ports:
7171
- 8089:80
@@ -84,6 +84,7 @@ services:
8484
retries: 3
8585

8686
test:
87+
profiles: ["full"]
8788
build: ./test
8889
networks:
8990
- app-network

0 commit comments

Comments
 (0)