-
Notifications
You must be signed in to change notification settings - Fork 1
124 lines (95 loc) · 2.9 KB
/
static.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
on: [pull_request]
name: Static analysis
jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Download dependencies
uses: ramsey/composer-install@v3
- name: Install PHPStan
uses: ramsey/composer-install@v3
with:
composer-options: "--working-dir=tools/phpstan"
- name: PHPStan
run: tools/phpstan/vendor/bin/phpstan analyze --no-progress --error-format=checkstyle
php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Install php-cs-fixer
uses: ramsey/composer-install@v3
with:
composer-options: "--working-dir=tools/php-cs-fixer"
- name: PHP-CS-Fixer
run: tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff --config=.php-cs-fixer.dist.php
twig-cs-fixer:
name: Twig CS Fixer
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Install twig-cs-fixer
uses: ramsey/composer-install@v3
with:
composer-options: "--working-dir=tools/twig-cs-fixer"
- name: Twig CS Fixer
run: tools/twig-cs-fixer/vendor/bin/twig-cs-fixer lint
linters:
name: 🧹 Linters
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Download dependencies
uses: ramsey/composer-install@v3
- name: Lint YAML files
shell: bash
run: bin/console lint:yaml config --parse-tags
- name: Lint Parameters and Services
shell: bash
run: bin/console lint:container --no-debug
- name: Lint Composer config
shell: bash
run: composer validate
- name: Check that PSR is respected
shell: bash
run: composer dump-autoload --dev -o --dry-run --strict-psr
audit:
name: 🔍 Audit vendors
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Download dependencies
uses: ramsey/composer-install@v3
- name: Check whether a PHP dependency is compromised
shell: bash
run: composer audit
- name: Check whether a front dependency is compromised
shell: bash
run: bin/console importmap:audit