Skip to content

Commit

Permalink
Run CI on 5.6-8.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Nov 30, 2024
1 parent 0bf4a35 commit 716ebe0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions bin/update-tests
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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

0 comments on commit 716ebe0

Please sign in to comment.