Skip to content

Commit ef335fb

Browse files
committed
Add (or update) GitHub Action (GHA) files and related config.
1 parent abdf399 commit ef335fb

File tree

7 files changed

+73
-32
lines changed

7 files changed

+73
-32
lines changed

.config/hadolint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
# For all available rules see: https://github.com/hadolint/hadolint#rules
3+
ignored:
4+
- DL3008 # We do not want to pin versions in apt get install.
5+
- DL3018 # We do not want to pin versions in apk add
6+
7+
# For full details see https://github.com/hadolint/hadolint#configure
8+
#
9+
# The following keys are available:
10+
#
11+
# failure-threshold: string # name of threshold level (error | warning | info | style | ignore | none)
12+
# format: string # Output format (tty | json | checkstyle | codeclimate | gitlab_codeclimate | gnu | codacy)
13+
# label-schema: # See https://github.com/hadolint/hadolint#linting-labels for details
14+
# author: string # Your name
15+
# contact: string # email address
16+
# created: timestamp # rfc3339 datetime
17+
# version: string # semver
18+
# documentation: string # url
19+
# git-revision: string # hash
20+
# license: string # spdx
21+
# no-color: boolean # true | false
22+
# no-fail: boolean # true | false
23+
# override:
24+
# error: [string] # list of rules
25+
# warning: [string] # list of rules
26+
# info: [string] # list of rules
27+
# style: [string] # list of rules
28+
# strict-labels: boolean # true | false
29+
# disable-ignore-pragma: boolean # true | false
30+
# trustedRegistries: string | [string] # registry or list of registries

.github/workflows/dockerfile.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,34 @@ on:
77
pull_request:
88
branches: [ main ]
99
paths:
10+
- '.config/hadolint.yml'
11+
- '.dockerignore'
12+
- '.github/workflows/dockerfile.yml'
1013
- 'Dockerfile'
14+
# Docker project specific, Dockerfile "COPY" and "ADD" entries.
15+
- 'src/'
16+
- 'web/'
17+
- 'composer.json'
18+
- 'composer.lock'
19+
- 'site.conf'
1120
types: [ opened, reopened, synchronize ]
1221
# This event occurs when there is a push to the repository.
1322
push:
1423
paths:
24+
- '.config/hadolint.yml'
25+
- '.dockerignore'
26+
- '.github/workflows/dockerfile.yml'
1527
- 'Dockerfile'
28+
# Docker project specific, Dockerfile "COPY" and "ADD" entries.
29+
- 'src/'
30+
- 'web/'
31+
- 'composer.json'
32+
- 'composer.lock'
33+
- 'site.conf'
1634
# Allow manually triggering the workflow.
1735
workflow_dispatch:
1836

37+
# Cancels all previous workflow runs for the same branch that have not yet completed.
1938
concurrency:
2039
group: ${{ github.workflow }}-${{ github.ref }}
2140
cancel-in-progress: true
@@ -35,3 +54,5 @@ jobs:
3554
with:
3655
args: >-
3756
hadolint
57+
--config .config/hadolint.yml
58+
Dockerfile

.github/workflows/json.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ on:
88
branches: [ main ]
99
paths:
1010
- '**.json'
11+
- '.github/workflows/json.yml'
1112
types: [ opened, reopened, synchronize ]
1213
# This event occurs when there is a push to the repository.
1314
push:
1415
paths:
1516
- '**.json'
17+
- '.github/workflows/json.yml'
1618
# Allow manually triggering the workflow.
1719
workflow_dispatch:
1820

21+
# Cancels all previous workflow runs for the same branch that have not yet completed.
1922
concurrency:
2023
group: ${{ github.workflow }}-${{ github.ref }}
2124
cancel-in-progress: true

.github/workflows/markdown.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ on:
88
branches: [ main ]
99
paths:
1010
- '**.md'
11+
- '.github/workflows/markdown.yml'
1112
types: [ opened, reopened, synchronize ]
1213
# This event occurs when there is a push to the repository.
1314
push:
1415
paths:
1516
- '**.md'
17+
- '.github/workflows/markdown.yml'
1618
# Allow manually triggering the workflow.
1719
workflow_dispatch:
1820

21+
# Cancels all previous workflow runs for the same branch that have not yet completed.
1922
concurrency:
2023
group: ${{ github.workflow }}-${{ github.ref }}
2124
cancel-in-progress: true
@@ -37,19 +40,3 @@ jobs:
3740
remark
3841
--rc-path=.config/.remarkrc
3942
--ignore-pattern='*/vendor/*'
40-
# 03.quality.markdown.lint-spelling.yml
41-
spellcheck-markdown:
42-
name: Markdown Spellcheck
43-
runs-on: ubuntu-24.04
44-
steps:
45-
- uses: actions/checkout@v4
46-
- uses: docker://pipelinecomponents/markdown-spellcheck
47-
with:
48-
args: >-
49-
mdspell
50-
--en-us
51-
--ignore-numbers
52-
--report
53-
'**/*.md'
54-
'!**/node_modules/**/*.md'
55-
'!**/vendor/**/*.md'

.github/workflows/php.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- '**.php'
1010
- '.config/phpcs.xml.dist'
1111
- '.config/phpunit.xml.dist'
12+
- '.github/workflows/php.yml'
1213
- 'composer.json'
1314
- 'composer.lock'
1415
branches: [ main ]
@@ -19,17 +20,14 @@ on:
1920
- '**.php'
2021
- '.config/phpcs.xml.dist'
2122
- '.config/phpunit.xml.dist'
23+
- '.github/workflows/php.yml'
2224
- 'composer.json'
2325
- 'composer.lock'
2426
# Allow manually triggering the workflow.
2527
workflow_dispatch:
26-
# Run once the "JSON Quality Assistance" workflow has been completed.
27-
workflow_run:
28-
workflows: [ "JSON Quality Assistance" ]
29-
types:
30-
- completed
3128

3229

30+
# Cancels all previous workflow runs for the same branch that have not yet completed.
3331
concurrency:
3432
group: ${{ github.workflow }}-${{ github.ref }}
3533
cancel-in-progress: true
@@ -82,7 +80,6 @@ jobs:
8280
--no-scripts
8381
# 03.quality.php.lint-version-compatibility.yml
8482
php-check-version-compatibility:
85-
continue-on-error: ${{ matrix.php < '8.1' || matrix.php > '8.4' }}
8683
name: PHP Version Compatibility
8784
needs:
8885
- lint-php-syntax
@@ -91,17 +88,15 @@ jobs:
9188
fail-fast: false
9289
matrix:
9390
php:
94-
- 8.0 # from 2020-11 to 2022-11 (2023-11)
95-
- 8.1 # from 2021-11 to 2023-11 (2025-12)
96-
- 8.2 # from 2022-12 to 2024-12 (2026-12)
97-
- 8.3 # from 2023-11 to 2025-12 (2027-12)
98-
- 8.4 # from 2024-11 to 2026-12 (2028-12)
99-
- 8.5 # from 2025-11 to 2027-12 (2029-12)
91+
- '8.0' # from 2020-11 to 2022-11 (2023-11)
92+
- '8.1' # from 2021-11 to 2023-11 (2025-12)
93+
- '8.2' # from 2022-12 to 2024-12 (2026-12)
94+
- '8.3' # from 2023-11 to 2025-12 (2027-12)
10095
steps:
10196
- uses: actions/checkout@v4
10297
- uses: docker://pipelinecomponents/php-codesniffer
10398
with:
104-
options: >-
99+
args: >-
105100
phpcs
106101
-s
107102
--extensions=php

.github/workflows/shell.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: Shell Script Quality Assistance
33

4-
54
on:
65
# This event occurs when there is activity on a pull request. The workflow
76
# will be run against the commits, after merge to the target branch (main).
@@ -10,15 +9,18 @@ on:
109
paths:
1110
- '**.bash'
1211
- '**.sh'
12+
- '.github/workflows/shell.yml'
1313
types: [ opened, reopened, synchronize ]
1414
# This event occurs when there is a push to the repository.
1515
push:
1616
paths:
1717
- '**.bash'
1818
- '**.sh'
19+
- '.github/workflows/shell.yml'
1920
# Allow manually triggering the workflow.
2021
workflow_dispatch:
2122

23+
# Cancels all previous workflow runs for the same branch that have not yet completed.
2224
concurrency:
2325
group: ${{ github.workflow }}-${{ github.ref }}
2426
cancel-in-progress: true
@@ -37,7 +39,9 @@ jobs:
3739
- run: >-
3840
find .
3941
-name '*.sh'
42+
-not -name .git
4043
-print0
44+
-type f
4145
| xargs -0 -P"$(nproc)" -I{} bash -n "{}"
4246
# 03.quality.shell.lint.yml
4347
lint-shell-quality:
@@ -49,8 +53,8 @@ jobs:
4953
with:
5054
args: >-
5155
find .
52-
\( -name '*.sh' -o -name '*.bash' \)
53-
-type f
5456
-not -name .git
5557
-print0
58+
-name '*.sh'
59+
-type f
5660
| xargs -0 -r -n1 shellcheck

.github/workflows/yaml.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
# Allow manually triggering the workflow.
1919
workflow_dispatch:
2020

21+
# Cancels all previous workflow runs for the same branch that have not yet completed.
2122
concurrency:
2223
group: ${{ github.workflow }}-${{ github.ref }}
2324
cancel-in-progress: true

0 commit comments

Comments
 (0)