Skip to content

Commit

Permalink
Fix CI database authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Mar 13, 2024
1 parent 19cc157 commit 586c8cc
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: forge
MYSQL_RANDOM_ROOT_PASSWORD: yes
MYSQL_DATABASE: pulse
MYSQL_USER: pulse
MYSQL_PASSWORD: password
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
Expand Down Expand Up @@ -61,7 +63,9 @@ jobs:
run: vendor/bin/pest
env:
DB_CONNECTION: mysql
DB_USERNAME: root
DB_DATABASE: pulse
DB_USERNAME: pulse
DB_PASSWORD: password

mariadb:
runs-on: ubuntu-22.04
Expand All @@ -70,8 +74,10 @@ jobs:
mysql:
image: mariadb:10.5
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: forge
MYSQL_RANDOM_ROOT_PASSWORD: yes
MYSQL_DATABASE: pulse
MYSQL_USER: pulse
MYSQL_PASSWORD: password
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
Expand Down Expand Up @@ -114,7 +120,9 @@ jobs:
run: vendor/bin/pest
env:
DB_CONNECTION: mysql
DB_USERNAME: root
DB_DATABASE: pulse
DB_USERNAME: pulse
DB_PASSWORD: password

pgsql:
runs-on: ubuntu-22.04
Expand All @@ -123,8 +131,8 @@ jobs:
postgresql:
image: postgres:14
env:
POSTGRES_DB: forge
POSTGRES_USER: forge
POSTGRES_DB: pulse
POSTGRES_USER: pulse
POSTGRES_PASSWORD: password
ports:
- 5432:5432
Expand Down Expand Up @@ -169,6 +177,8 @@ jobs:
run: vendor/bin/pest
env:
DB_CONNECTION: pgsql
DB_DATABASE: pulse
DB_USERNAME: pulse
DB_PASSWORD: password

sqlite:
Expand Down

0 comments on commit 586c8cc

Please sign in to comment.