mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for tests
This commit is contained in:
parent
1f5d1c8c80
commit
e747bcf185
11
.github/workflows/phpunit.yml
vendored
11
.github/workflows/phpunit.yml
vendored
@ -46,10 +46,10 @@ jobs:
|
|||||||
MYSQL_PASSWORD: ninja
|
MYSQL_PASSWORD: ninja
|
||||||
MYSQL_DATABASE: ninja
|
MYSQL_DATABASE: ninja
|
||||||
MYSQL_ROOT_PASSWORD: ninja
|
MYSQL_ROOT_PASSWORD: ninja
|
||||||
MYSQL_HOST: 127.0.0.1
|
|
||||||
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
|
||||||
@ -63,6 +63,7 @@ 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:
|
||||||
@ -77,22 +78,22 @@ 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
|
||||||
php artisan optimize
|
php artisan optimize
|
||||||
php artisan cache:clear
|
php artisan cache:clear
|
||||||
php artisan config:cache
|
php artisan config:cache
|
||||||
- name: Create DB and schemas
|
|
||||||
run: |
|
|
||||||
mkdir -p database
|
|
||||||
touch database/database.sqlite
|
|
||||||
- name: Migrate Database
|
- name: Migrate Database
|
||||||
run: |
|
run: |
|
||||||
|
echo 'config("database.connections")' | php artisan tinker
|
||||||
php artisan migrate:fresh --seed --force && php artisan db:seed --force
|
php artisan migrate:fresh --seed --force && php artisan db:seed --force
|
||||||
- name: Prepare JS/CSS assets
|
- name: Prepare JS/CSS assets
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user