Skip to content

Commit

Permalink
Ajout d'un workflow GitHub pour l'assurance qualité avec analyse de c…
Browse files Browse the repository at this point in the history
…ode statique, vérification de sécurité et tests automatisés. Mise à jour du Makefile pour utiliser une nouvelle image Docker.
  • Loading branch information
yoanbernabeu committed Dec 20, 2024
1 parent db70bf9 commit 4e4034e
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Quality Assurance

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
static-code-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: PHP CS Fixer
uses: docker://jakzal/phpqa:php8.3
with:
args: php-cs-fixer fix ./src --rules=@Symfony --verbose --dry-run

- name: PHPStan
uses: docker://jakzal/phpqa:php8.3
with:
args: phpstan analyse ./src --level=8

- name: Security Check
uses: docker://jakzal/phpqa:php8.3
with:
args: local-php-security-checker

- name: Lint Twig
uses: docker://jakzal/phpqa:php8.3
with:
args: bin/console lint:twig ./templates

- name: Lint YAML
uses: docker://jakzal/phpqa:php8.3
with:
args: bin/console lint:yaml ./config

- name: Lint Container
uses: docker://jakzal/phpqa:php8.3
with:
args: bin/console lint:container

- name: Run Tests
uses: docker://jakzal/phpqa:php8.3
with:
args: bin/phpunit --testdox
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ docker-stop: ## Stop docker containers.
.PHONY: docker-stop

docker-build: ## Build docker containers.
$(DOCKER) build -t openstreampoll .
$(DOCKER) build -t yoanbernabeu/openstreampoll .
.PHONY: docker-build

docker-run: ## Run docker container in port 80 with SERVER_NAME=:80
Expand Down
Empty file removed docker/entrypoint.sh
Empty file.

0 comments on commit 4e4034e

Please sign in to comment.