Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Run tests on at least PHP 8.2 #231

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
strategy:
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
steps:
Expand All @@ -25,7 +24,7 @@ jobs:
name: Code Quality
runs-on: ubuntu-latest
env:
php: '8.1'
php: '8.2'

steps:
- name: Checkout
Expand Down
14 changes: 7 additions & 7 deletions Build/Scripts/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ a recent docker-compose (tested >=1.21.2) is needed.

Usage: $0 [options] [file]

No arguments: Run all unit tests with PHP 8.1
No arguments: Run all unit tests with PHP 8.2

Options:
-s <...>
Expand All @@ -50,10 +50,10 @@ Options:
- lint: PHP linting
- rector: Apply Rector rules

-p <8.1|8.2>
-p <8.2|8.3>
Specifies the PHP minor version to be used
- 8.1 (default): use PHP 8.1
- 8.2: use PHP 8.2
- 8.2 (default): use PHP 8.2
- 8.3: use PHP 8.3

-n
Only with -s cgl, composerNormalize, rector
Expand All @@ -72,7 +72,7 @@ Options:
Show this help.

Examples:
# Run unit tests using PHP 8.1
# Run unit tests using PHP 8.2
./Build/Scripts/runTests.sh
EOF

Expand All @@ -98,7 +98,7 @@ else
ROOT_DIR=`realpath ${PWD}/../../`
fi
TEST_SUITE="cgl"
PHP_VERSION="8.1"
PHP_VERSION="8.2"
SCRIPT_VERBOSE=0
CGLCHECK_DRY_RUN=""
COMPOSER_NORMALIZE_DRY_RUN=""
Expand Down Expand Up @@ -152,7 +152,7 @@ if [ ${#INVALID_OPTIONS[@]} -ne 0 ]; then
exit 1
fi

# Move "8.1" to "php81", the latter is the docker container name
# Move "8.2" to "php82", the latter is the docker container name
DOCKER_PHP_IMAGE=`echo "php${PHP_VERSION}" | sed -e 's/\.//'`

# Suite execution
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"typo3/cms-backend": "dev-main",
"typo3/cms-core": "dev-main",
"typo3/cms-extbase": "dev-main",
Expand Down
Loading