From ed54a6b257cdab4b34949f2b19c0f3e5b79041e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Tue, 14 Oct 2025 17:50:06 +0200 Subject: [PATCH] ci: update symfony.yml --- .env.test | 2 +- .github/workflows/symfony.yml | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.env.test b/.env.test index 3445a76..4743668 100644 --- a/.env.test +++ b/.env.test @@ -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" diff --git a/.github/workflows/symfony.yml b/.github/workflows/symfony.yml index f746914..cf73a11 100644 --- a/.github/workflows/symfony.yml +++ b/.github/workflows/symfony.yml @@ -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