Skip to content

Commit

Permalink
chore: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mp3000mp committed May 9, 2024
1 parent d2b4849 commit e3370ae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
MARIADB_PASSWORD: password1
MARIADB_DATABASE: auto_entreprise_test
ports:
- 3306/tcp
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
Expand Down Expand Up @@ -53,19 +53,20 @@ jobs:
working-directory: ${{ env.DIRECTORY }}
run: php bin/console doc:database:create --no-interaction -e test
env:
DATABASE_URL: "mysql://user1:[email protected]:{{ job.services.mariadb.ports['3306'] }}/auto_entreprise_test?serverVersion=10.9.6-MariaDB"
# DATABASE_URL: "mysql://user1:[email protected]:{{ job.services.mariadb.ports[3306] }}/auto_entreprise_test?serverVersion=10.9.6-MariaDB"
DATABASE_URL: ${{ format('mysql://user1:[email protected]:{0}/auto_entreprise_test?serverVersion=10.9.6-MariaDB', job.services.mariadb.ports[3306]) }}

- name: Migrate database
working-directory: ${{ env.DIRECTORY }}
run: php bin/console doc:mig:mig --no-interaction -e test
env:
DATABASE_URL: "mysql://user1:[email protected]:{{ job.services.mariadb.ports['3306'] }}/auto_entreprise_test?serverVersion=10.9.6-MariaDB"
DATABASE_URL: ${{ format('mysql://user1:[email protected]:{0}/auto_entreprise_test?serverVersion=10.9.6-MariaDB', job.services.mariadb.ports[3306]) }}

- name: Exec tests
working-directory: ${{ env.DIRECTORY }}
run: composer tuci
env:
DATABASE_URL: "mysql://user1:[email protected]:{{ job.services.mariadb.ports['3306'] }}/auto_entreprise_test?serverVersion=10.9.6-MariaDB"
DATABASE_URL: ${{ format('mysql://user1:[email protected]:{0}/auto_entreprise_test?serverVersion=10.9.6-MariaDB', job.services.mariadb.ports[3306]) }}

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
Expand Down

0 comments on commit e3370ae

Please sign in to comment.