Fixes for tests

This commit is contained in:
David Bomba 2021-02-04 20:01:20 +11:00
parent ddd67071cc
commit 8c404644b0

View File

@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
operating-system: ['ubuntu-18.04', 'ubuntu-20.04']
php-versions: ['7.3', '7.4']
php-versions: ['7.4']
phpunit-versions: ['latest']
env:
@ -53,7 +53,7 @@ jobs:
run: |
sudo /etc/init.d/mysql start
- name: Sleep for 30 seconds //allows time for MySQL to start
- name: Sleep for 30 seconds to allow mysql to start
uses: jakejarvis/wait-action@master
with:
time: '30s'
@ -67,7 +67,6 @@ jobs:
while ! mysqladmin ping -h"127.0.0.1" -P"$DB_PORT" --silent; do
sleep 1
done
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
@ -82,7 +81,6 @@ jobs:
- name: Copy .env
run: |
cp .env.ci .env
- name: Install composer dependencies
run: |
composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
@ -93,12 +91,10 @@ jobs:
php artisan optimize
php artisan cache:clear
php artisan config:cache
- name: Create DB and schemas
run: |
mkdir -p database
touch database/database.sqlite
- name: Migrate Database
run: |
php artisan migrate:fresh --seed --force && php artisan db:seed --force
@ -106,7 +102,6 @@ jobs:
run: |
npm i
npm run production
- name: Run Testsuite
run: |
cat .env
@ -117,4 +112,3 @@ jobs:
- name: Run php-cs-fixer
run: |
vendor/bin/php-cs-fixer fix