From e1e3a3620a3a9b180cba63d68c5f30fec5932568 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Mon, 5 Apr 2021 16:30:27 -0700 Subject: [PATCH] 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.). --- .env.ci.example | 19 +++++++++++++++++++ .github/workflows/ci.yml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .env.ci.example diff --git a/.env.ci.example b/.env.ci.example new file mode 100644 index 0000000..52844df --- /dev/null +++ b/.env.ci.example @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac4994b..fc5c0f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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