From 93b1e9154462152744c9ff406feb090bb2b8275c Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 27 Mar 2021 15:41:12 -0700
Subject: [PATCH] Add PHP 7.4 and 8.0

---
 plugins/templates/before-script.yml |  4 +++-
 plugins/templates/matrix.yml        | 18 ++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/plugins/templates/before-script.yml b/plugins/templates/before-script.yml
index 12680c1..01c0f42 100644
--- a/plugins/templates/before-script.yml
+++ b/plugins/templates/before-script.yml
@@ -4,7 +4,9 @@ before_script:
 
   # PHPUnit
   - |
-    if [[ $(php -v) =~ "PHP 7." ]]; then
+    if [[ $(php -v) =~ "PHP 8." ]]; then
+      composer global require "phpunit/phpunit=7.*"
+    el if [[ $(php -v) =~ "PHP 7." ]]; then
       composer global require "phpunit/phpunit=6.1.*"
     elif [[ $(php -v) =~ "PHP 5.6" ]]; then
       composer global require "phpunit/phpunit=5.4.*"
diff --git a/plugins/templates/matrix.yml b/plugins/templates/matrix.yml
index d237e55..d8f1e94 100644
--- a/plugins/templates/matrix.yml
+++ b/plugins/templates/matrix.yml
@@ -54,6 +54,24 @@ PHPunit:PHP7.3:MySQL:
     - find . -type "f" -iname "*.php" | xargs -L "1" php -l
     - phpunit
 
+PHPunit:PHP7.4:MySQL:
+  stage: test
+  image: containers.ethitter.com:443/docker/images/php:7.4
+  services:
+    - mysql:5.6
+  script:
+    - find . -type "f" -iname "*.php" | xargs -L "1" php -l
+    - phpunit
+
+PHPunit:PHP8.0:MySQL:
+  stage: test
+  image: containers.ethitter.com:443/docker/images/php:8.0
+  services:
+    - mysql:5.6
+  script:
+    - find . -type "f" -iname "*.php" | xargs -L "1" php -l
+    - phpunit
+
 PHPCS:
   stage: test
   image: containers.ethitter.com:443/docker/images/php:7.3
-- 
GitLab