Skip to content

Commit

Permalink
ci: run integration tests for Chi/Golang/MySQL
Browse files Browse the repository at this point in the history
Part of #13
  • Loading branch information
php-coder committed Mar 23, 2024
1 parent cae21bd commit 07fdad5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
application-port: 3010
- service-name: 'express-ts'
application-port: 3020
- service-name: 'chi'
application-port: 3030
steps:

- name: Clone source code
Expand Down
14 changes: 14 additions & 0 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,17 @@ services:
depends_on:
mysql:
condition: service_healthy

chi:
build: ../examples/go/chi/mysql
environment:
- DB_NAME=test
- DB_USER=test
- DB_PASSWORD=test
- DB_HOST=mysql # defaults to localhost
- PORT=3030 # defaults to 3000
ports:
- '3030:3030'
depends_on:
mysql:
condition: service_healthy

0 comments on commit 07fdad5

Please sign in to comment.