Add missing templates, add PostgreSQL and Redis services to CI
- Create 13 missing Twig templates (account, security, legal, unsubscribe, pages) - CI: add PostgreSQL and Redis service containers for php and sonarqube jobs - CI: create database schema before running tests - Use null mailer in test environment Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -10,6 +10,30 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
php:
|
php:
|
||||||
runs_on: ubuntu-latest
|
runs_on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
database:
|
||||||
|
image: postgres:16-alpine
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: app
|
||||||
|
POSTGRES_PASSWORD: secret
|
||||||
|
POSTGRES_DB: e_ticket_test
|
||||||
|
options: >-
|
||||||
|
--health-cmd "pg_isready -U app -d e_ticket_test"
|
||||||
|
--health-interval 5s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 5
|
||||||
|
redis:
|
||||||
|
image: redis:7-alpine
|
||||||
|
options: >-
|
||||||
|
--health-cmd "redis-cli ping"
|
||||||
|
--health-interval 5s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 5
|
||||||
|
env:
|
||||||
|
DATABASE_URL: "postgresql://app:secret@database:5432/e_ticket_test?serverVersion=16&charset=utf8"
|
||||||
|
MESSENGER_TRANSPORT_DSN: "redis://redis:6379/messages"
|
||||||
|
MAILER_DSN: "null://null"
|
||||||
|
APP_ENV: test
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -42,6 +66,9 @@ jobs:
|
|||||||
- name: PHP CS Fixer
|
- name: PHP CS Fixer
|
||||||
run: vendor/bin/php-cs-fixer fix --dry-run --diff
|
run: vendor/bin/php-cs-fixer fix --dry-run --diff
|
||||||
|
|
||||||
|
- name: Create database schema
|
||||||
|
run: php bin/console doctrine:schema:create --env=test
|
||||||
|
|
||||||
- name: PHPUnit with coverage
|
- name: PHPUnit with coverage
|
||||||
run: vendor/bin/phpunit --testdox --coverage-clover coverage.xml --coverage-text
|
run: vendor/bin/phpunit --testdox --coverage-clover coverage.xml --coverage-text
|
||||||
|
|
||||||
@@ -74,6 +101,30 @@ jobs:
|
|||||||
sonarqube:
|
sonarqube:
|
||||||
needs: [php, frontend]
|
needs: [php, frontend]
|
||||||
runs_on: ubuntu-latest
|
runs_on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
database:
|
||||||
|
image: postgres:16-alpine
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: app
|
||||||
|
POSTGRES_PASSWORD: secret
|
||||||
|
POSTGRES_DB: e_ticket_test
|
||||||
|
options: >-
|
||||||
|
--health-cmd "pg_isready -U app -d e_ticket_test"
|
||||||
|
--health-interval 5s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 5
|
||||||
|
redis:
|
||||||
|
image: redis:7-alpine
|
||||||
|
options: >-
|
||||||
|
--health-cmd "redis-cli ping"
|
||||||
|
--health-interval 5s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 5
|
||||||
|
env:
|
||||||
|
DATABASE_URL: "postgresql://app:secret@database:5432/e_ticket_test?serverVersion=16&charset=utf8"
|
||||||
|
MESSENGER_TRANSPORT_DSN: "redis://redis:6379/messages"
|
||||||
|
MAILER_DSN: "null://null"
|
||||||
|
APP_ENV: test
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -90,6 +141,9 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer install --no-interaction --prefer-dist
|
run: composer install --no-interaction --prefer-dist
|
||||||
|
|
||||||
|
- name: Create database schema
|
||||||
|
run: php bin/console doctrine:schema:create --env=test
|
||||||
|
|
||||||
- name: Generate coverage
|
- name: Generate coverage
|
||||||
run: vendor/bin/phpunit --coverage-clover coverage.xml
|
run: vendor/bin/phpunit --coverage-clover coverage.xml
|
||||||
|
|
||||||
|
|||||||
7
templates/account/index.html.twig
Normal file
7
templates/account/index.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Mon compte - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/legal/cgu.html.twig
Normal file
7
templates/legal/cgu.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}CGU - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/legal/cgv.html.twig
Normal file
7
templates/legal/cgv.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}CGV - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/legal/cookies.html.twig
Normal file
7
templates/legal/cookies.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Cookies - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/legal/hosting.html.twig
Normal file
7
templates/legal/hosting.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Hebergement - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/legal/mentions_legales.html.twig
Normal file
7
templates/legal/mentions_legales.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Mentions legales - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/legal/rgpd.html.twig
Normal file
7
templates/legal/rgpd.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}RGPD - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/pages/external_redirect.twig
Normal file
7
templates/pages/external_redirect.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Redirection externe - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/security/change_password.html.twig
Normal file
7
templates/security/change_password.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Modifier mon mot de passe - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/security/login.html.twig
Normal file
7
templates/security/login.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Connexion - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/security/register.html.twig
Normal file
7
templates/security/register.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Inscription - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/unsubscribe/confirmed.html.twig
Normal file
7
templates/unsubscribe/confirmed.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Desinscription confirmee - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
7
templates/unsubscribe/index.html.twig
Normal file
7
templates/unsubscribe/index.html.twig
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Desinscription - E-Ticket{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user