-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (71 loc) · 2.23 KB
/
code-quality.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
security-checker:
runs-on: ubuntu-latest
container:
image: jakzal/phpqa:php8.2
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache Composer dependencies
id: composer-cache
uses: actions/cache@v2
with:
path: backend/vendor
key: ${{ runner.os }}-composer-${{ hashFiles('backend/composer.lock') }}
- name: Install Composer dependencies
run: composer install --no-progress
working-directory: backend
- name: Run local-php-security-checker
run: local-php-security-checker backend/composer.lock
working-directory: backend
php-code-standard:
runs-on: ubuntu-latest
container:
image: jakzal/phpqa:php8.2
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache Composer dependencies
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
- name: Install Composer dependencies
run: composer install --no-progress
working-directory: backend
- name: PHP Coding Standards
run: |
php-cs-fixer fix src --dry-run --rules=@Symfony --verbose
phpstan analyse src -l9
phpdd src
phpcpd src --exclude 'src/Controller/Admin/' --exclude 'src/Entity'
working-directory: backend
lint:
runs-on: ubuntu-latest
container:
image: jakzal/phpqa:php8.2
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache Composer dependencies
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
- name: Install Composer dependencies
run: composer install --no-progress
working-directory: backend
- name: PHP Lint
run: |
bin/console lint:twig templates --env=prod
bin/console lint:yaml config --parse-tags
bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction
working-directory: backend