11<!-- DO NOT EDIT THIS FILE!
22
3- It was automatically created by task/scripts/github-documentation-update at Tue Apr 8 13:30:36 CEST 2025.
3+ It was automatically
4+ created by task/scripts/github-documentation-update
5+ based on /app/task/scripts/../templates/github-actions-templates.md
6+ at 2025-04-09T11:29:14+02:00.
47-->
58# Github Actions templates
69
@@ -22,6 +25,8 @@ to match the new templates.
2225
2326## Templates
2427
28+ The current list of templates is shown in the following sections.
29+
2530---
2631
2732[ github/workflows/changelog.yaml] ( github/workflows/changelog.yaml )
@@ -59,7 +64,34 @@ Validates composer.json and checks that it's normalized.
5964
6065[ github/workflows/drupal/php.yaml] ( github/workflows/drupal/php.yaml )
6166
62- Drupal PHP
67+ ### Drupal PHP
68+
69+ Checks that PHP code adheres to the [ Drupal coding
70+ standards] ( https://www.drupal.org/docs/develop/standards ) .
71+
72+ #### Assumptions
73+
74+ 1 . A docker compose service named ` phpfpm ` can be run and ` composer ` can be
75+ run inside the ` phpfpm ` service.
76+ 2 . [ drupal/coder] ( https://www.drupal.org/project/coder ) is a dev requirement
77+ in ` composer.json ` :
78+
79+ ``` shell
80+ docker compose run --rm phpfpm composer require --dev drupal/coder
81+ ```
82+
83+ Clean up and check code by running
84+
85+ ``` shell
86+ docker compose run --rm phpfpm vendor/bin/phpcbf
87+ docker compose run --rm phpfpm vendor/bin/phpcs
88+ ```
89+
90+ > [ !NOTE]
91+ > The template adds ` .phpcs.xml.dist ` as [ a configuration file for
92+ > PHP_CodeSniffer] ( https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file )
93+ > and this makes it possible to override the actual configuration used in a
94+ > project by adding a more important configuration file, e.g. ` .phpcs.xml ` .
6395
6496---
6597
@@ -92,8 +124,10 @@ JavaScript (and TypeScript)
92124Uses [ itkdev/markdownlint] ( https://hub.docker.com/r/itkdev/markdownlint ) to
93125link all Markdown files (` **/*.md ` ) in the project.
94126
95- [ markdownlint-cli configuration ### files] ( https://github.com/igorshubovych/markdownlint-cli?tab=readme-ov-file#configuration ) ,
96- ` .markdownlint.jsonc ` and ` .markdownlintignore ` control what is actually linted and how.
127+ [ markdownlint-cli configuration
128+ files] ( https://github.com/igorshubovych/markdownlint-cli?tab=readme-ov-file#configuration ) ,
129+ ` .markdownlint.jsonc ` and ` .markdownlintignore ` , control what is actually
130+ linted and how.
97131
98132---
99133
@@ -105,7 +139,7 @@ Styles (CSS and SCSS)
105139
106140[ github/workflows/symfony/php.yaml] ( github/workflows/symfony/php.yaml )
107141
108- Symfony PHP
142+ ### Symfony PHP
109143
110144---
111145
@@ -131,3 +165,27 @@ Validates Twig files
131165 in the root of the project defines which files to check and rules to use.
132166
133167---
168+
169+ ## Updating template documentation
170+
171+ To update this document, run
172+
173+ ``` shell
174+ task github-actions:documentation:update
175+ ```
176+
177+ ### GitHub Actions workflow documentation convention
178+
179+ Each workflow file must contain a single documentation block with lines starting with ` ### ` , e.g.
180+
181+ ``` markdown
182+ ### ### The title
183+ ###
184+ ### This template …
185+ ###
186+ ### See … for details.
187+ ```
188+
189+ > [ !IMPORTANT]
190+ > All lines in the documentation block must start with ` ### ` and the documentation block consists of all consecutive
191+ > lines starting with ` ### ` .
0 commit comments