From 4954ab22d9d03d68eb64f14f676a4f616613b4c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20M=C3=BCller?= <2566282+brotkrueml@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:59:17 +0200 Subject: [PATCH] [CI] [Backport 12.4] Lint code with PHP 8.4 (#295) (#296) Releases: main, 12.4 --- .github/workflows/tests.yml | 1 + Build/Scripts/runTests.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b326dac..d813788 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,6 +14,7 @@ jobs: - '8.1' - '8.2' - '8.3' + - '8.4' steps: - name: Checkout uses: actions/checkout@v4 diff --git a/Build/Scripts/runTests.sh b/Build/Scripts/runTests.sh index 8fd897e..eb263d6 100755 --- a/Build/Scripts/runTests.sh +++ b/Build/Scripts/runTests.sh @@ -59,11 +59,12 @@ Options: If not specified, podman will be used if available. Otherwise, docker is used. - -p <8.1|8.2|8.3> + -p <8.1|8.2|8.3|8.4> Specifies the PHP minor version to be used - 8.1: (default) use PHP 8.1 - 8.2: use PHP 8.2 - 8.3: use PHP 8.3 + - 8.4: use PHP 8.4 -n Only with -s cgl, composerNormalize, rector Activate dry-run in CGL check and composer normalize that does not actively change files and only prints broken ones. @@ -118,7 +119,7 @@ while getopts "b:s:p:xy:nhu" OPT; do ;; p) PHP_VERSION=${OPTARG} - if ! [[ ${PHP_VERSION} =~ ^(8.1|8.2|8.3)$ ]]; then + if ! [[ ${PHP_VERSION} =~ ^(8.1|8.2|8.3|8.4)$ ]]; then INVALID_OPTIONS+=("p ${OPTARG}") fi ;;