Skip to content

Commit c1a34a3

Browse files
committed
Updated project template
1 parent e808515 commit c1a34a3

8 files changed

Lines changed: 40 additions & 40 deletions

File tree

.github/workflows/changelog.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ on:
1414
jobs:
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

.github/workflows/composer.yaml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,25 @@
2626
name: Composer
2727

2828
env:
29-
COMPOSE_USER: root
29+
COMPOSE_USER: runner
3030

3131
on:
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

3843
jobs:
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: |

.github/workflows/markdown.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@ name: Markdown
2222

2323
on:
2424
pull_request:
25+
paths: &paths
26+
- "**/*.md"
2527
push:
2628
branches:
2729
- main
2830
- develop
31+
paths: *paths
2932

3033
jobs:
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: |

.github/workflows/php.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,32 @@
3434
name: PHP
3535

3636
env:
37-
COMPOSE_USER: root
37+
COMPOSE_USER: runner
3838

3939
on:
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

4652
jobs:
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

.github/workflows/twig.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,32 @@
2424
name: Twig
2525

2626
env:
27-
COMPOSE_USER: root
27+
COMPOSE_USER: runner
2828

2929
on:
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

3642
jobs:
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

.github/workflows/yaml.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,20 @@ name: YAML
2222

2323
on:
2424
pull_request:
25+
paths: &paths
26+
- "**/*.yml"
27+
- "**/*.yaml"
2528
push:
2629
branches:
2730
- main
2831
- develop
32+
paths: *paths
2933

3034
jobs:
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: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea
12
vendor
23
composer.lock
34
*.cache

.twig-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

0 commit comments

Comments
 (0)