Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit

Permalink
ci: bind mysql on test workflow and use 127.0.0.1 as DB host
Browse files Browse the repository at this point in the history
Ref: b4ff7c4
Ref: 7ed618b
  • Loading branch information
williamdes committed Apr 27, 2020
1 parent f1cbf1c commit 1b45e3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
MYSQL_USER: sys
MYSQL_PASSWORD: password
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
ports:
- "3308:3306"
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -35,7 +37,7 @@ jobs:
composer install --no-suggest --no-interaction --optimize-autoloader
- name: Run unit tests
env:
DB_HOST: mysql
DB_HOST: 127.0.0.1
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
DB_DATABASE: api_db
DB_USERNAME: sys
Expand Down

0 comments on commit 1b45e3d

Please sign in to comment.