|
1 | 1 | <!-- DO NOT EDIT THIS FILE! |
2 | 2 |
|
3 | | -It was automatically created at 2025-05-06T10:12:47+02:00 |
| 3 | +It was automatically created at 2025-05-07T13:03:25+02:00 |
4 | 4 | by task/scripts/github-documentation-update |
5 | 5 | based on /app/task/scripts/../templates/github-actions-templates.md |
6 | 6 | --> |
@@ -158,10 +158,63 @@ linted and how. |
158 | 158 |
|
159 | 159 | --- |
160 | 160 |
|
| 161 | +[github/workflows/symfony/javascript.yaml](github/workflows/symfony/javascript.yaml) |
| 162 | + |
| 163 | +### Symfony JavaScript (and TypeScript) |
| 164 | + |
| 165 | +Validates JavaScript files. |
| 166 | + |
| 167 | +#### Assumptions |
| 168 | + |
| 169 | +1. A docker compose service named `prettier` for running |
| 170 | + [Prettier](https://prettier.io/) exists. |
| 171 | + |
| 172 | +--- |
| 173 | + |
161 | 174 | [github/workflows/symfony/php.yaml](github/workflows/symfony/php.yaml) |
162 | 175 |
|
163 | 176 | ### Symfony PHP |
164 | 177 |
|
| 178 | +Checks that PHP code adheres to the [Symfony coding |
| 179 | +standards](https://symfony.com/doc/current/contributing/code/standards.html). |
| 180 | + |
| 181 | +#### Assumptions |
| 182 | + |
| 183 | +1. A docker compose service named `phpfpm` can be run and `composer` can be |
| 184 | + run inside the `phpfpm` service. 2. |
| 185 | + [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) |
| 186 | + is a dev requirement in `composer.json`: |
| 187 | + |
| 188 | + ``` shell |
| 189 | + docker compose run --rm phpfpm composer require --dev friendsofphp/php-cs-fixer |
| 190 | + ``` |
| 191 | + |
| 192 | + Clean up and check code by running |
| 193 | + |
| 194 | + ``` shell |
| 195 | + docker compose run --rm phpfpm vendor/bin/phpcbf |
| 196 | + docker compose run --rm phpfpm vendor/bin/phpcs |
| 197 | + ``` |
| 198 | + |
| 199 | +> [!NOTE] The template adds `.php-cs-fixer.dist.php` as [a configuration |
| 200 | +> file for PHP CS |
| 201 | +> Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/config.rst) |
| 202 | +> and this makes it possible to override the actual configuration used in a |
| 203 | +> project by adding a more important configuration file, `.php-cs-fixer.php`. |
| 204 | +
|
| 205 | +--- |
| 206 | + |
| 207 | +[github/workflows/symfony/styles.yaml](github/workflows/symfony/styles.yaml) |
| 208 | + |
| 209 | +### Symfony Styles (CSS and SCSS) |
| 210 | + |
| 211 | +Validates styles files. |
| 212 | + |
| 213 | +#### Assumptions |
| 214 | + |
| 215 | +1. A docker compose service named `prettier` for running |
| 216 | + [Prettier](https://prettier.io/) exists. |
| 217 | + |
165 | 218 | --- |
166 | 219 |
|
167 | 220 | [github/workflows/twig.yaml](github/workflows/twig.yaml) |
|
0 commit comments