-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajout d'un workflow GitHub pour l'assurance qualité avec analyse de c…
…ode statique, vérification de sécurité et tests automatisés. Mise à jour du Makefile pour utiliser une nouvelle image Docker.
- Loading branch information
1 parent
db70bf9
commit 4e4034e
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.