Update CI config

This is a short term workaround for having a more local development focused
env example file. The CI approach should be re-consider in the future to use
similar configurations (MySQL, redis, etc.).
This commit is contained in:
Christopher C. Wells 2021-04-05 16:30:27 -07:00
parent 0961a37ef2
commit e1e3a3620a
2 changed files with 20 additions and 1 deletions

19
.env.ci.example Normal file
View File

@ -0,0 +1,19 @@
APP_NAME=kcal
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_LEVEL=debug
DB_CONNECTION=sqlite
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
SCOUT_DRIVER=elastic
ELASTIC_HOST=localhost:9200

View File

@ -32,7 +32,7 @@ jobs:
run: composer install --no-progress --no-interaction
- name: Generate app key
run: |
php -r "file_exists('.env') || copy('.env.example', '.env');"
php -r "file_exists('.env') || copy('.env.ci.example', '.env');"
php artisan key:generate
- name: Run tests
run: vendor/bin/paratest --coverage-clover build/logs/clover.xml