ci : add pull_request quality gate workflow #11
@@ -23,14 +23,15 @@ jobs:
|
|||||||
postgres:
|
postgres:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
env:
|
env:
|
||||||
# Doivent matcher la DATABASE_URL ci-dessous (et le default
|
# Doivent matcher la DATABASE_URL ci-dessous. Le suffixe `_test`
|
||||||
# de phpunit.dist.xml). Le suffixe `_test` est applique
|
# est applique automatiquement par Doctrine en APP_ENV=test.
|
||||||
# automatiquement par Doctrine en APP_ENV=test.
|
|
||||||
POSTGRES_USER: app
|
POSTGRES_USER: app
|
||||||
POSTGRES_PASSWORD: '!ChangeMe!'
|
POSTGRES_PASSWORD: '!ChangeMe!'
|
||||||
POSTGRES_DB: app
|
POSTGRES_DB: app
|
||||||
ports:
|
# Pas de `ports:` host mapping — le runner partage l'hote avec la
|
||||||
- 5432:5432
|
# prod (Postgres deja sur 5432) et les jobs Gitea Actions tournent
|
||||||
|
# en container sur un reseau Docker dedie : le service est joignable
|
||||||
|
# via son nom (`postgres`), pas via 127.0.0.1.
|
||||||
options: >-
|
options: >-
|
||||||
--health-cmd "pg_isready -U app"
|
--health-cmd "pg_isready -U app"
|
||||||
--health-interval 5s
|
--health-interval 5s
|
||||||
@@ -42,7 +43,7 @@ jobs:
|
|||||||
APP_SECRET: ci-secret-not-used
|
APP_SECRET: ci-secret-not-used
|
||||||
APP_DEBUG: 0
|
APP_DEBUG: 0
|
||||||
DEFAULT_URI: http://localhost/
|
DEFAULT_URI: http://localhost/
|
||||||
DATABASE_URL: postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8
|
DATABASE_URL: postgresql://app:!ChangeMe!@postgres:5432/app?serverVersion=16&charset=utf8
|
||||||
JWT_SECRET_KEY: '%kernel.project_dir%/config/jwt/private.pem'
|
JWT_SECRET_KEY: '%kernel.project_dir%/config/jwt/private.pem'
|
||||||
JWT_PUBLIC_KEY: '%kernel.project_dir%/config/jwt/public.pem'
|
JWT_PUBLIC_KEY: '%kernel.project_dir%/config/jwt/public.pem'
|
||||||
JWT_PASSPHRASE: change_me_in_env_local
|
JWT_PASSPHRASE: change_me_in_env_local
|
||||||
|
|||||||
Reference in New Issue
Block a user