Skip to content

Commit 7be0918

Browse files
committed
output the docker bound ports
1 parent 58ee86a commit 7be0918

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,20 @@ jobs:
5151
run: bash ./setup_github.sh && docker compose up --build -d
5252

5353
- name: check dns is working
54-
run: netstat -tulpn # Use -tulpn to show TCP/UDP listeners
54+
run: cat /etc/hosts; netstat -tulpn # Use -tulpn to show TCP/UDP listeners
55+
56+
- name: Check what services are on what port
57+
run: docker ps --format "table {{.Names}}\t{{.Ports}}"
5558

5659
- name: Run E2E tests
5760
uses: cypress-io/github-action@v6
5861
with:
59-
config: pageLoadTimeout=100000,baseUrl=http://localhost:8089
62+
config: pageLoadTimeout=100000,baseUrl=127.0.0.1:80
6063
working-directory: test/
6164

65+
- name: Run unit tests
66+
run: docker compose run test npx cypress run
67+
6268
- name: Save artifact
6369
uses: actions/upload-artifact@v4
6470
with:

docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ services:
6464
image: nginx:alpine
6565
ports:
6666
- 8089:80
67+
- 80:80
6768
volumes:
6869
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
6970
depends_on:

0 commit comments

Comments
 (0)