Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Aug 14, 2024
1 parent 6ae935c commit 95dc3e1
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 10 deletions.
25 changes: 25 additions & 0 deletions .env.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
APP_ENV=ci
APP_KEY=
APP_DEBUG=true

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=rezultatevot
DB_USERNAME=root
DB_PASSWORD=tests

SESSION_DRIVER=database
SESSION_LIFETIME=120

BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=redis

CACHE_STORE=redis

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=log
8 changes: 0 additions & 8 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
APP_NAME="Rezultate Vot"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_TIMEZONE=UTC
APP_URL=http://localhost

APP_LOCALE=ro
APP_FALLBACK_LOCALE=ro
APP_FAKER_LOCALE=ro_RO

APP_MAINTENANCE_DRIVER=file
# APP_MAINTENANCE_STORE=database

LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,29 @@ jobs:
php-version:
- '8.2'

services:
mysql:
image: mysql:8.0
env:
MYSQL_DATABASE: rezultatevot
MYSQL_ALLOW_EMPTY_PASSWORD: true
ports:
- 3306
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 3
redis:
image: redis:7.4
ports:
- 6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
extensions: mbstring, intl, gd

Expand Down Expand Up @@ -64,6 +87,11 @@ jobs:
- name: Run tests
run: php artisan test
env:
DB_HOST: mysql
DB_PORT: ${{ job.services.mysql.ports[3306] }}
REDIS_HOST: redis
REDIS_PORT: ${{ job.services.redis.ports[6379] }}

- name: Upload logs
if: always()
Expand Down
4 changes: 2 additions & 2 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@
|
*/

'locale' => env('APP_LOCALE', 'en'),
'locale' => env('APP_LOCALE', 'ro'),

'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),

'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
'faker_locale' => env('APP_FAKER_LOCALE', 'ro_RO'),

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 95dc3e1

Please sign in to comment.