ci: update symfony.yml

This commit is contained in:
Maël Gangloff 2025-10-14 17:50:06 +02:00
parent 97ea1ab33a
commit ed54a6b257
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629
2 changed files with 16 additions and 3 deletions

View File

@ -2,4 +2,4 @@
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:5432/postgres?serverVersion=16&charset=utf8"

View File

@ -2,9 +2,9 @@ name: Symfony CI
on:
push:
branches: [ "master" ]
branches: [ "master", "develop" ]
pull_request:
branches: [ "master" ]
branches: [ "master", "develop" ]
permissions:
contents: read
@ -13,6 +13,16 @@ jobs:
symfony:
name: CI
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v3
@ -40,6 +50,9 @@ jobs:
- name: Run PHPStan
run: vendor/bin/phpstan analyse
- name: Prepare database
run: bin/console --env=test doctrine:database:create && bin/console --env=test doctrine:migrations:migrate
- name: Run PHPUnit
run: vendor/bin/phpunit --coverage-text