|
1 | 1 | <!-- DO NOT EDIT THIS FILE!
|
2 | 2 |
|
3 |
| -It was automatically created at 2025-05-05T10:20:02+02:00 |
| 3 | +It was automatically created at 2025-05-05T13:58:04+02:00 |
4 | 4 | by task/scripts/github-documentation-update
|
5 | 5 | based on /app/task/scripts/../templates/github-actions-templates.md
|
6 | 6 | -->
|
@@ -61,6 +61,65 @@ Validates composer.json and checks that it's normalized.
|
61 | 61 |
|
62 | 62 | ---
|
63 | 63 |
|
| 64 | +[github/workflows/drupal-module/javascript.yaml](github/workflows/drupal-module/javascript.yaml) |
| 65 | + |
| 66 | +### Drupal module JavaScript (and TypeScript) |
| 67 | + |
| 68 | +Validates JavaScript files. |
| 69 | + |
| 70 | +#### Assumptions |
| 71 | + |
| 72 | +1. A docker compose service named `prettier` for running |
| 73 | + [Prettier](https://prettier.io/) exists. |
| 74 | + |
| 75 | +--- |
| 76 | + |
| 77 | +[github/workflows/drupal-module/php.yaml](github/workflows/drupal-module/php.yaml) |
| 78 | + |
| 79 | +### Drupal module PHP |
| 80 | + |
| 81 | +Checks that PHP code adheres to the [Drupal coding |
| 82 | +standards](https://www.drupal.org/docs/develop/standards). |
| 83 | + |
| 84 | +#### Assumptions |
| 85 | + |
| 86 | +1. A docker compose service named `phpfpm` can be run and `composer` can be |
| 87 | + run inside the `phpfpm` service. |
| 88 | +2. [drupal/coder](https://www.drupal.org/project/coder) is a dev requirement |
| 89 | +in `composer.json`: |
| 90 | + |
| 91 | + ``` shell |
| 92 | + docker compose run --rm phpfpm composer require --dev drupal/coder |
| 93 | + ``` |
| 94 | + |
| 95 | + Clean up and check code by running |
| 96 | + |
| 97 | + ``` shell |
| 98 | + docker compose run --rm phpfpm vendor/bin/phpcbf |
| 99 | + docker compose run --rm phpfpm vendor/bin/phpcs |
| 100 | + ``` |
| 101 | + |
| 102 | +> [!NOTE] |
| 103 | +> The template adds `.phpcs.xml.dist` as [a configuration file for |
| 104 | +> PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file) |
| 105 | +> and this makes it possible to override the actual configuration used in a |
| 106 | +> project by adding a more important configuration file, e.g. `.phpcs.xml`. |
| 107 | +
|
| 108 | +--- |
| 109 | + |
| 110 | +[github/workflows/drupal-module/styles.yaml](github/workflows/drupal-module/styles.yaml) |
| 111 | + |
| 112 | +### Drupal module Styles (CSS and SCSS) |
| 113 | + |
| 114 | +Validates styles files. |
| 115 | + |
| 116 | +#### Assumptions |
| 117 | + |
| 118 | +1. A docker compose service named `prettier` for running |
| 119 | + [Prettier](https://prettier.io/) exists. |
| 120 | + |
| 121 | +--- |
| 122 | + |
64 | 123 | [github/workflows/drupal/javascript.yaml](github/workflows/drupal/javascript.yaml)
|
65 | 124 |
|
66 | 125 | ### Drupal JavaScript (and TypeScript)
|
|
0 commit comments