mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-05 06:44:37 -04:00
Fixes for tests
This commit is contained in:
parent
e33cc31513
commit
589d2bb9a8
7
.github/workflows/phpunit.yml
vendored
7
.github/workflows/phpunit.yml
vendored
@ -47,9 +47,11 @@ jobs:
|
|||||||
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
|
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Start mysql service
|
- name: Start mysql service
|
||||||
run: |
|
run: |
|
||||||
sudo /etc/init.d/mysql start
|
sudo /etc/init.d/mysql start
|
||||||
|
|
||||||
- name: Verify MariaDB connection
|
- name: Verify MariaDB connection
|
||||||
env:
|
env:
|
||||||
DB_PORT: ${{ job.services.mariadb.ports[3306] }}
|
DB_PORT: ${{ job.services.mariadb.ports[3306] }}
|
||||||
@ -59,6 +61,11 @@ jobs:
|
|||||||
while ! mysqladmin ping -h"127.0.0.1" -P"$DB_PORT" --silent; do
|
while ! mysqladmin ping -h"127.0.0.1" -P"$DB_PORT" --silent; do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Verify MySQL connection from container
|
||||||
|
run: |
|
||||||
|
mysql --host mysql -uroot -pninja -e "SHOW DATABASES"
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user