From 716ebe0e6089db35276c4576596791f01accadc8 Mon Sep 17 00:00:00 2001 From: kagg-design Date: Sat, 30 Nov 2024 17:05:43 +0200 Subject: [PATCH] Run CI on 5.6-8.4. --- .github/workflows/ci.yml | 2 +- bin/update-tests | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c312bc..3784ff0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0'] + php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] name: PHP ${{ matrix.php-version }} on ${{ matrix.os }} steps: diff --git a/bin/update-tests b/bin/update-tests index d1f7145..5a4ce79 100644 --- a/bin/update-tests +++ b/bin/update-tests @@ -2,7 +2,7 @@ # This file updates tests according to the phpunit library used for current php version, or php version in 1st argument. # Usage: # update-tests - to update tests according to the phpunit library used for current php version. -# update-tests x.x - to update tests according to the phpunit library used for specific php version x.x, where x.x = 5.6|7.0|7.1|7.2|7.3|7.4|8.0. +# update-tests x.x - to update tests according to the phpunit library used for specific php version x.x, where x.x = 5.6|7.0|7.1|7.2|7.3|7.4|8.0|8.1|8.2|8.3|8.4. # Directory with phpunit tests. TEST_DIR="tests" @@ -14,7 +14,7 @@ else fi if [[ $1 == '' && $DEV_MODE != '1' ]]; then - echo "Script works with composer in dev mode only." +# Script works with composer in dev mode only. exit 0 fi @@ -52,7 +52,7 @@ elif [[ $PHP_VERSION == '7.1' ]]; then PHP_UNIT='7.5' elif [[ $PHP_VERSION == '7.2' ]]; then PHP_UNIT='8.5' -elif [[ $PHP_VERSION == '7.3' || $PHP_VERSION == '7.4' || $PHP_VERSION == '8.0' ]]; then +elif [[ $PHP_VERSION == '7.3' || $PHP_VERSION == '7.4' || $PHP_VERSION == '8.0' || $PHP_VERSION == '8.1' || $PHP_VERSION == '8.2' || $PHP_VERSION == '8.3' || $PHP_VERSION == '8.4' ]]; then PHP_UNIT='9.5' fi @@ -73,7 +73,7 @@ git checkout -- $TEST_DIR if [[ $PHP_UNIT == '5.7' || $PHP_UNIT == '6.5' || $PHP_UNIT == '7.5' ]]; then echo "Preparing tests for phpunit-$PHP_UNIT" - find $TEST_DIR -type f -exec sed -i "s/: void//g" {} \; + find $TEST_DIR -type f -exec sed -i "s/: void / /g" {} \; fi exit 0