File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414jobs :
1515 changelog :
1616 runs-on : ubuntu-latest
17- strategy :
18- fail-fast : false
1917 steps :
2018 - name : Checkout
21- uses : actions/checkout@v4
19+ uses : actions/checkout@v6
2220 with :
2321 fetch-depth : 2
2422
Original file line number Diff line number Diff line change 2626name : Composer
2727
2828env :
29- COMPOSE_USER : root
29+ COMPOSE_USER : runner
3030
3131on :
3232 pull_request :
33+ paths : &paths
34+ - " composer.json"
35+ - " composer.lock"
36+ - " docker-compose.yml"
3337 push :
3438 branches :
3539 - main
3640 - develop
41+ paths : *paths
3742
3843jobs :
3944 composer-validate :
4045 runs-on : ubuntu-latest
41- strategy :
42- fail-fast : false
4346 steps :
44- - uses : actions/checkout@v4
47+ - uses : actions/checkout@v6
4548
4649 - name : Create docker network
4750 run : |
@@ -52,30 +55,21 @@ jobs:
5255
5356 composer-normalized :
5457 runs-on : ubuntu-latest
55- strategy :
56- fail-fast : false
5758 steps :
58- - uses : actions/checkout@v4
59+ - uses : actions/checkout@v6
5960
6061 - name : Create docker network
6162 run : |
6263 docker network create frontend
6364
6465 - run : |
65- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer init --no-interaction
66- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
67- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer require mglaman/composer-drupal-lenient
68- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm rm composer.lenient.*
69-
7066 docker compose run --rm phpfpm composer install
7167 docker compose run --rm phpfpm composer normalize --dry-run
7268
7369 composer-audit :
7470 runs-on : ubuntu-latest
75- strategy :
76- fail-fast : false
7771 steps :
78- - uses : actions/checkout@v4
72+ - uses : actions/checkout@v6
7973
8074 - name : Create docker network
8175 run : |
Original file line number Diff line number Diff line change @@ -22,19 +22,20 @@ name: Markdown
2222
2323on :
2424 pull_request :
25+ paths : &paths
26+ - " **/*.md"
2527 push :
2628 branches :
2729 - main
2830 - develop
31+ paths : *paths
2932
3033jobs :
3134 markdown-lint :
3235 runs-on : ubuntu-latest
33- strategy :
34- fail-fast : false
3536 steps :
3637 - name : Checkout
37- uses : actions/checkout@v4
38+ uses : actions/checkout@v6
3839
3940 - name : Create docker network
4041 run : |
Original file line number Diff line number Diff line change 3434name : PHP
3535
3636env :
37- COMPOSE_USER : root
37+ COMPOSE_USER : runner
3838
3939on :
4040 pull_request :
41+ paths : &paths
42+ - " **/*.php"
43+ - " composer.json"
44+ - " composer.lock"
45+ - " docker-compose.yml"
4146 push :
4247 branches :
4348 - main
4449 - develop
50+ paths : *paths
4551
4652jobs :
4753 coding-standards :
4854 name : PHP - Check Coding Standards
4955 runs-on : ubuntu-latest
5056 steps :
51- - uses : actions/checkout@v4
57+ - uses : actions/checkout@v6
5258
5359 - name : Create docker network
5460 run : |
5561 docker network create frontend
5662
5763 - run : |
58- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer init --no-interaction
59- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
60- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer require mglaman/composer-drupal-lenient
61- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm rm composer.lenient.*
62-
6364 docker compose run --rm phpfpm composer install
6465 docker compose run --rm phpfpm vendor/bin/phpcs
Original file line number Diff line number Diff line change 2424name : Twig
2525
2626env :
27- COMPOSE_USER : root
27+ COMPOSE_USER : runner
2828
2929on :
3030 pull_request :
31+ paths : &paths
32+ - " **/*.twig"
33+ - " composer.json"
34+ - " composer.lock"
35+ - " docker-compose.yml"
3136 push :
3237 branches :
3338 - main
3439 - develop
40+ paths : *paths
3541
3642jobs :
3743 twig-lint :
3844 runs-on : ubuntu-latest
39- strategy :
40- fail-fast : false
4145 steps :
4246 - name : Checkout
43- uses : actions/checkout@v4
47+ uses : actions/checkout@v6
4448
45- - run : |
49+ - name : Create docker network
50+ run : |
4651 docker network create frontend
4752
48- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer init --no-interaction
49- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
50- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm composer require mglaman/composer-drupal-lenient
51- docker compose run --rm --env COMPOSER=composer.lenient.json phpfpm rm composer.lenient.*
52-
53+ - run : |
5354 docker compose run --rm phpfpm composer install
5455 docker compose run --rm phpfpm vendor/bin/twig-cs-fixer lint
Original file line number Diff line number Diff line change @@ -22,16 +22,20 @@ name: YAML
2222
2323on :
2424 pull_request :
25+ paths : &paths
26+ - " **/*.yml"
27+ - " **/*.yaml"
2528 push :
2629 branches :
2730 - main
2831 - develop
32+ paths : *paths
2933
3034jobs :
3135 yaml-lint :
3236 runs-on : ubuntu-latest
3337 steps :
34- - uses : actions/checkout@v4
38+ - uses : actions/checkout@v6
3539
3640 - name : Create docker network
3741 run : |
Original file line number Diff line number Diff line change 1+ .idea
12vendor
23composer.lock
34* .cache
Original file line number Diff line number Diff line change 11<?php
2- // This file is copied from config/drupal/twig/.twig-cs-fixer.dist.php in https://github.com/itk-dev/devops_itkdev-docker.
2+ // This file is copied from config/drupal-module /twig/.twig-cs-fixer.dist.php in https://github.com/itk-dev/devops_itkdev-docker.
33// Feel free to edit the file, but consider making a pull request if you find a general issue with the file.
44
55// https://github.com/VincentLanglet/Twig-CS-Fixer/blob/main/docs/configuration.md#configuration-file
You can’t perform that action at this time.
0 commit comments