Skip to content

Commit 2053f1d

Browse files
committed
Cleaned up
1 parent 127afad commit 2053f1d

18 files changed

Lines changed: 374 additions & 146 deletions

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Drupal editor configuration normalization
2+
# @see http://editorconfig.org/
3+
4+
# This is the top-most .editorconfig file; do not search in parent directories.
5+
root = true
6+
7+
# All files.
8+
[*]
9+
end_of_line = LF
10+
indent_style = space
11+
indent_size = 4
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true

.github/workflows/changelog.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@
99
name: Changelog
1010

1111
on:
12-
pull_request:
12+
pull_request:
1313

1414
jobs:
15-
changelog:
16-
runs-on: ubuntu-latest
17-
strategy:
18-
fail-fast: false
19-
steps:
20-
- name: Checkout
21-
uses: actions/checkout@v5
22-
with:
23-
fetch-depth: 2
15+
changelog:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v5
22+
with:
23+
fetch-depth: 2
2424

25-
- name: Git fetch
26-
run: git fetch
25+
- name: Git fetch
26+
run: git fetch
2727

28-
- name: Check that changelog has been updated.
29-
run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0
28+
- name: Check that changelog has been updated.
29+
run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0

.github/workflows/composer.yaml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -26,64 +26,64 @@
2626
name: Composer
2727

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

3131
on:
32-
pull_request:
33-
push:
34-
branches:
35-
- main
36-
- develop
32+
pull_request:
33+
push:
34+
branches:
35+
- main
36+
- develop
3737

3838
jobs:
39-
composer-validate:
40-
runs-on: ubuntu-latest
41-
strategy:
42-
fail-fast: false
43-
steps:
44-
- uses: actions/checkout@v5
39+
composer-validate:
40+
runs-on: ubuntu-latest
41+
strategy:
42+
fail-fast: false
43+
steps:
44+
- uses: actions/checkout@v5
4545

46-
- name: Create docker network
47-
run: |
48-
docker network create frontend
46+
- name: Create docker network
47+
run: |
48+
docker network create frontend
4949
50-
- run: |
51-
docker compose run --rm phpfpm composer validate --strict
50+
- run: |
51+
docker compose run --rm phpfpm composer validate --strict
5252
53-
composer-normalized:
54-
runs-on: ubuntu-latest
55-
strategy:
56-
fail-fast: false
57-
steps:
58-
- uses: actions/checkout@v5
53+
composer-normalized:
54+
runs-on: ubuntu-latest
55+
strategy:
56+
fail-fast: false
57+
steps:
58+
- uses: actions/checkout@v5
5959

60-
# https://github.com/mxschmitt/action-tmate?tab=readme-ov-file#manually-triggered-debug
61-
# Enable tmate debugging if debug logging is enabled (cf.
62-
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#runner-context)
63-
- name: Setup tmate session
64-
uses: mxschmitt/action-tmate@v3
65-
with:
66-
limit-access-to-actor: false
67-
if: 1 == runner.debug
60+
# https://github.com/mxschmitt/action-tmate?tab=readme-ov-file#manually-triggered-debug
61+
# Enable tmate debugging if debug logging is enabled (cf.
62+
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#runner-context)
63+
- name: Setup tmate session
64+
uses: mxschmitt/action-tmate@v3
65+
with:
66+
limit-access-to-actor: false
67+
if: 1 == runner.debug
6868

69-
- name: Create docker network
70-
run: |
71-
docker network create frontend
69+
- name: Create docker network
70+
run: |
71+
docker network create frontend
7272
73-
- run: |
74-
docker compose run --rm phpfpm composer install
75-
docker compose run --rm phpfpm composer normalize --dry-run
73+
- run: |
74+
docker compose run --rm phpfpm composer install
75+
docker compose run --rm phpfpm composer normalize --dry-run
7676
77-
composer-audit:
78-
runs-on: ubuntu-latest
79-
strategy:
80-
fail-fast: false
81-
steps:
82-
- uses: actions/checkout@v5
77+
composer-audit:
78+
runs-on: ubuntu-latest
79+
strategy:
80+
fail-fast: false
81+
steps:
82+
- uses: actions/checkout@v5
8383

84-
- name: Create docker network
85-
run: |
86-
docker network create frontend
84+
- name: Create docker network
85+
run: |
86+
docker network create frontend
8787
88-
- run: |
89-
docker compose run --rm phpfpm composer audit
88+
- run: |
89+
docker compose run --rm phpfpm composer audit

.github/workflows/mago.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Mago
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- develop
9+
10+
jobs:
11+
# https://mago.carthage.software/latest/en/guide/getting-started/
12+
mago:
13+
name: Mago
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
18+
- name: Create docker network
19+
run: |
20+
docker network create frontend
21+
22+
- run: |
23+
docker compose run --rm mago lint
24+
25+
mago-format:
26+
name: Mago - format
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v5
30+
31+
- name: Create docker network
32+
run: |
33+
docker network create frontend
34+
35+
- run: |
36+
docker compose run --rm mago format --check
37+
38+
mago-analyze:
39+
name: Mago - analyze
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v5
43+
44+
- name: Create docker network
45+
run: |
46+
docker network create frontend
47+
48+
- run: |
49+
docker compose run --rm mago analyze

.github/workflows/markdown.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@
2121
name: Markdown
2222

2323
on:
24-
pull_request:
25-
push:
26-
branches:
27-
- main
28-
- develop
24+
pull_request:
25+
push:
26+
branches:
27+
- main
28+
- develop
2929

3030
jobs:
31-
markdown-lint:
32-
runs-on: ubuntu-latest
33-
strategy:
34-
fail-fast: false
35-
steps:
36-
- name: Checkout
37-
uses: actions/checkout@v5
31+
markdown-lint:
32+
runs-on: ubuntu-latest
33+
strategy:
34+
fail-fast: false
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v5
3838

39-
- name: Create docker network
40-
run: |
41-
docker network create frontend
39+
- name: Create docker network
40+
run: |
41+
docker network create frontend
4242
43-
- run: |
44-
docker compose run --rm markdownlint markdownlint '**/*.md'
43+
- run: |
44+
docker compose run --rm markdownlint markdownlint '**/*.md'

.github/workflows/php.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,27 @@
3434
name: Symfony PHP
3535

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

3939
on:
40-
pull_request:
41-
push:
42-
branches:
43-
- main
44-
- develop
40+
pull_request:
41+
push:
42+
branches:
43+
- main
44+
- develop
4545

4646
jobs:
47-
coding-standards:
48-
name: PHP - Check Coding Standards
49-
runs-on: ubuntu-latest
50-
steps:
51-
- uses: actions/checkout@v5
47+
coding-standards:
48+
name: PHP - Check Coding Standards
49+
runs-on: ubuntu-latest
50+
steps:
51+
- uses: actions/checkout@v5
5252

53-
- name: Create docker network
54-
run: |
55-
docker network create frontend
53+
- name: Create docker network
54+
run: |
55+
docker network create frontend
5656
57-
- run: |
58-
docker compose run --rm phpfpm composer install
59-
# https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/usage.rst#the-check-command
60-
docker compose run --rm phpfpm vendor/bin/php-cs-fixer fix --dry-run --diff
57+
- run: |
58+
docker compose run --rm phpfpm composer install
59+
# https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/usage.rst#the-check-command
60+
docker compose run --rm phpfpm vendor/bin/php-cs-fixer fix --dry-run --diff

.github/workflows/yaml.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@
2121
name: YAML
2222

2323
on:
24-
pull_request:
25-
push:
26-
branches:
27-
- main
28-
- develop
24+
pull_request:
25+
push:
26+
branches:
27+
- main
28+
- develop
2929

3030
jobs:
31-
yaml-lint:
32-
runs-on: ubuntu-latest
33-
steps:
34-
- uses: actions/checkout@v5
31+
yaml-lint:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v5
3535

36-
- name: Create docker network
37-
run: |
38-
docker network create frontend
36+
- name: Create docker network
37+
run: |
38+
docker network create frontend
3939
40-
- run: |
41-
docker compose run --rm prettier '**/*.{yml,yaml}' --check
40+
- run: |
41+
docker compose run --rm prettier '**/*.{yml,yaml}' --check

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
composer.lock
22
vendor/
3+
4+
###> friendsofphp/php-cs-fixer ###
5+
/.php-cs-fixer.cache
6+
###< friendsofphp/php-cs-fixer ###

.php-cs-fixer.cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
# https://prettier.io/docs/configuration
55
overrides:
6-
# https://taskfile.dev/docs/styleguide
7-
- files:
8-
- "Taksfile.{yml,yaml}"
9-
options:
10-
tabWidth: 2
11-
singleQuote: true
6+
# https://taskfile.dev/docs/styleguide
7+
- files:
8+
- "Taskfile.{yml,yaml}"
9+
options:
10+
tabWidth: 2
11+
singleQuote: true

0 commit comments

Comments
 (0)