Skip to content

Commit 32db3e8

Browse files
committed
Add (or update) GitHub Action (GHA) files and related config.
1 parent 039904a commit 32db3e8

File tree

4 files changed

+19
-36
lines changed

4 files changed

+19
-36
lines changed

.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: 12 additions & 20 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
@@ -67,7 +65,6 @@ jobs:
6765
--strict
6866
# 02.test.php.test-unit.yml
6967
php-unittest:
70-
continue-on-error: ${{ matrix.php < '8.1' || matrix.php > '8.4' }}
7168
name: PHP Unit Tests
7269
needs:
7370
- lint-php-syntax
@@ -77,12 +74,10 @@ jobs:
7774
fail-fast: false
7875
matrix:
7976
php:
80-
- 8.0 # from 2020-11 to 2022-11 (2023-11)
81-
- 8.1 # from 2021-11 to 2023-11 (2025-12)
82-
- 8.2 # from 2022-12 to 2024-12 (2026-12)
83-
- 8.3 # from 2023-11 to 2025-12 (2027-12)
84-
- 8.4 # from 2024-11 to 2026-12 (2028-12)
85-
- 8.5 # from 2025-11 to 2027-12 (2029-12)
77+
- '8.0' # from 2020-11 to 2022-11 (2023-11)
78+
- '8.1' # from 2021-11 to 2023-11 (2025-12)
79+
- '8.2' # from 2022-12 to 2024-12 (2026-12)
80+
- '8.3' # from 2023-11 to 2025-12 (2027-12)
8681
steps:
8782
- uses: actions/checkout@v4
8883
- uses: shivammathur/setup-php@v2
@@ -115,7 +110,6 @@ jobs:
115110
--no-scripts
116111
# 03.quality.php.lint-version-compatibility.yml
117112
php-check-version-compatibility:
118-
continue-on-error: ${{ matrix.php < '8.1' || matrix.php > '8.4' }}
119113
name: PHP Version Compatibility
120114
needs:
121115
- lint-php-syntax
@@ -124,17 +118,15 @@ jobs:
124118
fail-fast: false
125119
matrix:
126120
php:
127-
- 8.0 # from 2020-11 to 2022-11 (2023-11)
128-
- 8.1 # from 2021-11 to 2023-11 (2025-12)
129-
- 8.2 # from 2022-12 to 2024-12 (2026-12)
130-
- 8.3 # from 2023-11 to 2025-12 (2027-12)
131-
- 8.4 # from 2024-11 to 2026-12 (2028-12)
132-
- 8.5 # from 2025-11 to 2027-12 (2029-12)
121+
- '8.0' # from 2020-11 to 2022-11 (2023-11)
122+
- '8.1' # from 2021-11 to 2023-11 (2025-12)
123+
- '8.2' # from 2022-12 to 2024-12 (2026-12)
124+
- '8.3' # from 2023-11 to 2025-12 (2027-12)
133125
steps:
134126
- uses: actions/checkout@v4
135127
- uses: docker://pipelinecomponents/php-codesniffer
136128
with:
137-
options: >-
129+
args: >-
138130
phpcs
139131
-s
140132
--extensions=php

.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)