From 6a0046a42812fc9fbcde24a6342f2d87269f4664 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Thu, 15 May 2025 19:12:59 -0700
Subject: [PATCH 1/2] Fix PHPCS

https://git.ethitter.com/wp-plugins/view-all-posts-pages/-/jobs/35429
---
 plugins/templates/matrix.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/templates/matrix.yml b/plugins/templates/matrix.yml
index 2f56557..aca42ad 100644
--- a/plugins/templates/matrix.yml
+++ b/plugins/templates/matrix.yml
@@ -70,6 +70,7 @@ PHPCS:
   stage: test
   image: containers.ethitter.com:443/docker/images/php:8.2
   before_script:
+    - composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
     - composer global require automattic/vipwpcs
     - composer global require phpcompatibility/phpcompatibility-wp
     - phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/automattic/vipwpcs,$HOME/.composer/vendor/phpcompatibility/php-compatibility,$HOME/.composer/vendor/phpcompatibility/phpcompatibility-paragonie,$HOME/.composer/vendor/phpcompatibility/phpcompatibility-wp,$HOME/.composer/vendor/sirbrillig/phpcs-variable-analysis
-- 
GitLab


From fb6d4e3bd058d1f562a5bff85c9c04d0aef2bd56 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Thu, 15 May 2025 19:13:22 -0700
Subject: [PATCH 2/2] Add PHP 8.2 and 8.3

---
 plugins/templates/matrix.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/plugins/templates/matrix.yml b/plugins/templates/matrix.yml
index aca42ad..5195b7e 100644
--- a/plugins/templates/matrix.yml
+++ b/plugins/templates/matrix.yml
@@ -66,6 +66,26 @@ PHPunit:PHP8.1:MySQL:
     - phpunit
   allow_failure: true
 
+PHPunit:PHP8.2:MySQL:
+  stage: test
+  image: containers.ethitter.com:443/docker/images/php:8.2
+  services:
+    - mysql:5.6
+  script:
+    - find . -type "f" -iname "*.php" | xargs -L "1" php -l
+    - phpunit
+  allow_failure: true
+
+PHPunit:PHP8.3:MySQL:
+  stage: test
+  image: containers.ethitter.com:443/docker/images/php:8.3
+  services:
+    - mysql:5.6
+  script:
+    - find . -type "f" -iname "*.php" | xargs -L "1" php -l
+    - phpunit
+  allow_failure: true
+
 PHPCS:
   stage: test
   image: containers.ethitter.com:443/docker/images/php:8.2
-- 
GitLab