Skip to content

Commit

Permalink
fix: backend ci 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mp3000mp committed Apr 30, 2024
1 parent a5d289e commit 2d87396
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
runs-on: ubuntu-latest

env:
DATABASE_URL: "mysql://user1:password1@mariadb:3306/auto_entreprise_test?serverVersion=10.9.6-MariaDB"
DATABASE_URL: "mysql://user1:password1@127.0.0.1:3306/auto_entreprise_test?serverVersion=10.9.6-MariaDB"
DIRECTORY: ./backend

services:
mariadb:
image: mariadb:10.9
env:
MYSQL_ROOT_PASSWORD: secret
MYSQL_USER: user1
MYSQL_PASSWORD: password1
MYSQL_DATABASE: auto_entreprise_test
MARIADB_ROOT_PASSWORD: secret
MARIADB_USER: user1
MARIADB_PASSWORD: password1
MARIADB_DATABASE: auto_entreprise_test
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
Expand Down Expand Up @@ -49,6 +49,14 @@ jobs:
working-directory: ${{ env.DIRECTORY }}
run: composer ps

- name: debug 1
working-directory: ${{ env.DIRECTORY }}
run: docker ps -a

- name: debug 2
working-directory: ${{ env.DIRECTORY }}
run: docker exec mariadb mysql -u root -psecret -Bse "show databases"

- name: Create database
working-directory: ${{ env.DIRECTORY }}
run: php bin/console doc:database:create --no-interaction -e test
Expand Down

0 comments on commit 2d87396

Please sign in to comment.