Skip to content

Commit

Permalink
ci: compose healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Feb 16, 2024
1 parent 623b53e commit e05d6e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm i
- run: docker-compose up -d blog
- run: npx wait-on http://localhost:9000 -t 30000
- run: docker-compose run --rm e2e-tests 2>&1
- run: docker-compose logs blog
if: failure()
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ services:
ports:
- 9000:9000
- 9001:9001
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/"]
e2e-tests:
depends_on:
- blog
blog:
condition: service_healthy
image: hydrofoil/hypertest:0.6.5
network_mode: "host"
environment:
Expand Down

0 comments on commit e05d6e7

Please sign in to comment.