@@ -30,17 +30,11 @@ permissions:
3030
3131jobs :
3232 plugin-check :
33- name : WordPress Plugin Check (PHP ${{ matrix.php-version }} )
33+ name : WordPress Plugin Check (PHP 8.3 )
3434 runs-on : ubuntu-latest
3535
3636 strategy :
3737 fail-fast : false
38- matrix :
39- php-version : ['7.4', '8.0', '8.3', '8.4']
40-
41- env :
42- # Make artifacts unique per PHP version to avoid conflicts in matrix jobs
43- ARTIFACT_NAME_SUFFIX : php-${{ matrix.php-version }}-${{ github.run_id }}-${{ github.run_number }}
4438
4539 steps :
4640 - name : Checkout code
@@ -50,10 +44,10 @@ jobs:
5044 fetch-depth : 0
5145 clean : true
5246
53- - name : Setup PHP
47+ - name : Setup PHP 8.3
5448 uses : shivammathur/setup-php@v2
5549 with :
56- php-version : ${{ matrix.php-version }}
50+ php-version : ' 8.3 '
5751 extensions : mysqli, curl, zip, intl, gd, mbstring, fileinfo, xml
5852 coverage : none
5953 tools : composer:v2
@@ -98,31 +92,10 @@ jobs:
9892 # WordPress version to use
9993 wp-version : ' latest'
10094
101- - name : Rename artifact to avoid conflicts (PHP ${{ matrix.php-version }})
95+ - name : Handle plugin check completion
10296 if : ${{ always() }}
10397 run : |
104- echo "📦 Looking for plugin-check artifacts to rename..."
105- if [ -d ".reports" ]; then
106- echo "Found .reports directory"
107- if [ -f ".reports/plugin-check-report.json" ]; then
108- mkdir -p "plugin-check-reports-php-${{ matrix.php-version }}"
109- mv .reports/plugin-check-report.json "plugin-check-reports-php-${{ matrix.php-version }}/"
110- echo "✅ Renamed artifact for PHP ${{ matrix.php-version }}"
111- fi
112- fi
113-
114- - name : Upload renamed artifact
115- if : ${{ always() }}
116- uses : actions/upload-artifact@v4
117- with :
118- name : plugin-check-report-php-${{ matrix.php-version }}-${{ github.run_id }}
119- path : plugin-check-reports-php-${{ matrix.php-version }}/
120- if-no-files-found : ignore
121-
122- - name : Skip Plugin Check for other PHP versions
123- if : ${{ matrix.php-version != '7.4' }}
124- run : |
125- echo "✅ Plugin Check completed for PHP ${{ matrix.php-version }}"
98+ echo "✅ Plugin Check completed for PHP 8.3"
12699
127100 - name : Create issue on plugin check failure
128101 if : ${{ failure() }}
@@ -142,21 +115,16 @@ jobs:
142115 exit 1
143116
144117 phpcs :
145- name : PHPCS Code Standards Check (PHP ${{ matrix.php-version }} )
118+ name : PHPCS Code Standards Check (PHP 8.3 )
146119 runs-on : ubuntu-latest
147- strategy :
148- matrix :
149- php-version : ['7.4', '8.0', '8.3', '8.4']
150- fail-fast : false
151-
152120 steps :
153121 - name : Checkout code
154122 uses : actions/checkout@v5
155123
156- - name : Setup PHP ${{ matrix.php-version }}
124+ - name : Setup PHP 8.3
157125 uses : shivammathur/setup-php@v2
158126 with :
159- php-version : ${{ matrix.php-version }}
127+ php-version : ' 8.3 '
160128 extensions : mysqli, curl, zip, intl, gd, mbstring, fileinfo, xml
161129 coverage : none
162130 tools : composer:v2, phpcs
@@ -194,29 +162,24 @@ jobs:
194162 uses : JasonEtco/create-an-issue@v2
195163 env :
196164 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
197- PHP_VERSION : ${{ matrix.php-version }}
165+ PHP_VERSION : ' 8.3 '
198166 RUN_ID : ${{ github.run_id }}
199167 WORKFLOW_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
200168 with :
201169 filename : .github/ISSUE_TEMPLATE/phpcs-failure.md
202170 update_existing : false
203171
204172 vip-phpcs :
205- name : WordPress VIP Coding Standards (PHP ${{ matrix.php-version }} )
173+ name : WordPress VIP Coding Standards (PHP 8.3 )
206174 runs-on : ubuntu-latest
207- strategy :
208- matrix :
209- php-version : ['7.4', '8.0', '8.3', '8.4']
210- fail-fast : false
211-
212175 steps :
213176 - name : Checkout code
214177 uses : actions/checkout@v5
215178
216- - name : Setup PHP ${{ matrix.php-version }}
179+ - name : Setup PHP 8.3
217180 uses : shivammathur/setup-php@v2
218181 with :
219- php-version : ${{ matrix.php-version }}
182+ php-version : ' 8.3 '
220183 extensions : mysqli, curl, zip, intl, gd, mbstring, fileinfo, xml
221184 coverage : none
222185 tools : composer:v2, phpcs
@@ -346,21 +309,16 @@ jobs:
346309 uses : JasonEtco/create-an-issue@v2
347310 env :
348311 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
349- PHP_VERSION : ${{ matrix.php-version }}
312+ PHP_VERSION : ' 8.3 '
350313 RUN_ID : ${{ github.run_id }}
351314 WORKFLOW_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
352315 with :
353316 filename : .github/ISSUE_TEMPLATE/vip-phpcs-failure.md
354317 update_existing : false
355318
356319 phpmd :
357- name : PHPMD Code Quality Check (PHP ${{ matrix.php-version }} )
320+ name : PHPMD Code Quality Check (PHP 8.3 )
358321 runs-on : ubuntu-latest
359- strategy :
360- matrix :
361- php-version : ['7.4', '8.0', '8.3', '8.4']
362- fail-fast : false
363-
364322 steps :
365323 - name : Checkout code
366324 uses : actions/checkout@v5
@@ -377,10 +335,10 @@ jobs:
377335 echo "Latest commit message: $(git log -1 --pretty=%B)"
378336 echo "=== End Git Information ==="
379337
380- - name : Setup PHP ${{ matrix.php-version }}
338+ - name : Setup PHP 8.3
381339 uses : shivammathur/setup-php@v2
382340 with :
383- php-version : ${{ matrix.php-version }}
341+ php-version : ' 8.3 '
384342 extensions : mysqli, curl, zip, intl, gd, mbstring, fileinfo, xml
385343 coverage : none
386344 tools : composer:v2, phpmd
@@ -412,29 +370,24 @@ jobs:
412370 uses : JasonEtco/create-an-issue@v2
413371 env :
414372 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
415- PHP_VERSION : ${{ matrix.php-version }}
373+ PHP_VERSION : ' 8.3 '
416374 RUN_ID : ${{ github.run_id }}
417375 WORKFLOW_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
418376 with :
419377 filename : .github/ISSUE_TEMPLATE/phpmd-failure.md
420378 update_existing : false
421379
422380 psalm-analysis :
423- name : Psalm Static Analysis (PHP ${{ matrix.php-version }} )
381+ name : Psalm Static Analysis (PHP 8.3 )
424382 runs-on : ubuntu-latest
425- strategy :
426- matrix :
427- php-version : ['7.4', '8.0', '8.3', '8.4']
428- fail-fast : false
429-
430383 steps :
431384 - name : Checkout code
432385 uses : actions/checkout@v5
433386
434- - name : Setup PHP ${{ matrix.php-version }}
387+ - name : Setup PHP 8.3
435388 uses : shivammathur/setup-php@v2
436389 with :
437- php-version : ${{ matrix.php-version }}
390+ php-version : ' 8.3 '
438391 extensions : mysqli, curl, zip, intl, gd, mbstring, fileinfo, xml
439392 coverage : none
440393 tools : composer:v2
@@ -482,29 +435,24 @@ jobs:
482435 uses : JasonEtco/create-an-issue@v2
483436 env :
484437 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
485- PHP_VERSION : ${{ matrix.php-version }}
438+ PHP_VERSION : ' 8.3 '
486439 RUN_ID : ${{ github.run_id }}
487440 WORKFLOW_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
488441 with :
489442 filename : .github/ISSUE_TEMPLATE/psalm-failure.md
490443 update_existing : false
491444
492445 security-check :
493- name : Security Vulnerability Check (PHP ${{ matrix.php-version }} )
446+ name : Security Vulnerability Check (PHP 8.3 )
494447 runs-on : ubuntu-latest
495- strategy :
496- matrix :
497- php-version : ['7.4', '8.0', '8.3', '8.4']
498- fail-fast : false
499-
500448 steps :
501449 - name : Checkout code
502450 uses : actions/checkout@v5
503451
504- - name : Setup PHP ${{ matrix.php-version }}
452+ - name : Setup PHP 8.3
505453 uses : shivammathur/setup-php@v2
506454 with :
507- php-version : ${{ matrix.php-version }}
455+ php-version : ' 8.3 '
508456 extensions : mysqli, curl, zip, intl, gd, mbstring, fileinfo, xml
509457 coverage : none
510458 tools : composer:v2
@@ -573,7 +521,7 @@ jobs:
573521 uses : JasonEtco/create-an-issue@v2
574522 env :
575523 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
576- PHP_VERSION : ${{ matrix.php-version }}
524+ PHP_VERSION : ' 8.3 '
577525 RUN_ID : ${{ github.run_id }}
578526 WORKFLOW_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
579527 with :
@@ -867,13 +815,8 @@ jobs:
867815 update_existing : false
868816
869817 phpstan-wordpress :
870- name : PHPStan for WordPress (PHP ${{ matrix.php-version }} )
818+ name : PHPStan for WordPress (PHP 8.3 )
871819 runs-on : ubuntu-latest
872- strategy :
873- matrix :
874- php-version : ['7.4', '8.0', '8.3', '8.4']
875- fail-fast : false
876-
877820 steps :
878821 - name : Checkout code
879822 uses : actions/checkout@v5
@@ -882,10 +825,10 @@ jobs:
882825 fetch-depth : 0
883826 clean : true
884827
885- - name : Setup PHP ${{ matrix.php-version }}
828+ - name : Setup PHP 8.3
886829 uses : shivammathur/setup-php@v2
887830 with :
888- php-version : ${{ matrix.php-version }}
831+ php-version : ' 8.3 '
889832 extensions : mysqli, curl, zip, intl, gd, mbstring, fileinfo, xml
890833 coverage : none
891834 tools : composer:v2
@@ -916,7 +859,7 @@ jobs:
916859 uses : JasonEtco/create-an-issue@v2
917860 env :
918861 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
919- PHP_VERSION : ${{ matrix.php-version }}
862+ PHP_VERSION : ' 8.3 '
920863 RUN_ID : ${{ github.run_id }}
921864 WORKFLOW_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
922865 with :
0 commit comments