mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests
This commit is contained in:
parent
a12906e502
commit
13df416957
15
.github/workflows/phpunit.yml
vendored
15
.github/workflows/phpunit.yml
vendored
@ -20,11 +20,11 @@ jobs:
|
|||||||
DB_DATABASE1: ninja
|
DB_DATABASE1: ninja
|
||||||
DB_USERNAME1: root
|
DB_USERNAME1: root
|
||||||
DB_PASSWORD1: ninja
|
DB_PASSWORD1: ninja
|
||||||
DB_HOST1: 'localhost'
|
DB_HOST1: '127.0.0.1'
|
||||||
DB_DATABASE: ninja
|
DB_DATABASE: ninja
|
||||||
DB_USERNAME: root
|
DB_USERNAME: root
|
||||||
DB_PASSWORD: ninja
|
DB_PASSWORD: ninja
|
||||||
DB_HOST: 'localhost'
|
DB_HOST: '127.0.0.1'
|
||||||
BROADCAST_DRIVER: log
|
BROADCAST_DRIVER: log
|
||||||
CACHE_DRIVER: file
|
CACHE_DRIVER: file
|
||||||
QUEUE_CONNECTION: sync
|
QUEUE_CONNECTION: sync
|
||||||
@ -37,23 +37,21 @@ jobs:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mysql:5.7
|
image: mariadb:latest
|
||||||
ports:
|
ports:
|
||||||
- 3306
|
- 3306
|
||||||
env:
|
env:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||||
MYSQL_USER: root
|
MYSQL_USER: ninja
|
||||||
MYSQL_PASSWORD: ninja
|
MYSQL_PASSWORD: ninja
|
||||||
MYSQL_DATABASE: ninja
|
MYSQL_DATABASE: ninja
|
||||||
MYSQL_ROOT_PASSWORD: ninja
|
MYSQL_ROOT_PASSWORD: ninja
|
||||||
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] }}
|
||||||
@ -63,12 +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: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php-versions }}
|
php-version: ${{ matrix.php-versions }}
|
||||||
extensions: mysql, mysqlnd, sqlite3, bcmath, gmp, gd, curl, zip, openssl, mbstring, xml
|
extensions: mysql, sqlite3, bcmath, gmp, gd, curl, zip, openssl, mbstring, xml
|
||||||
|
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
@ -78,12 +75,10 @@ jobs:
|
|||||||
- name: Copy .env
|
- name: Copy .env
|
||||||
run: |
|
run: |
|
||||||
cp .env.ci .env
|
cp .env.ci .env
|
||||||
|
|
||||||
- name: Install composer dependencies
|
- name: Install composer dependencies
|
||||||
run: |
|
run: |
|
||||||
composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
|
composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
|
||||||
composer install
|
composer install
|
||||||
|
|
||||||
- name: Prepare Laravel Application
|
- name: Prepare Laravel Application
|
||||||
run: |
|
run: |
|
||||||
php artisan key:generate
|
php artisan key:generate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user