Skip to content

Commit 3c170b8

Browse files
fashxpherbertroth
andauthored
Added php 8.3 support (#41)
* added php 8.3 support * Update codeception.yaml * Switch to reusable workflow. * Delete qodana, sonarcloud is used for public repos. * Update codeception.yaml --------- Co-authored-by: Herbert Roth <[email protected]>
1 parent 76d249e commit 3c170b8

File tree

3 files changed

+20
-59
lines changed

3 files changed

+20
-59
lines changed

.github/workflows/codeception.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,20 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14-
14+
strategy:
15+
matrix:
16+
include:
17+
- { php-version: 8.1, dependencies: lowest, pimcore_version: "", experimental: false }
18+
- { php-version: 8.3, dependencies: highest, pimcore_version: "", experimental: false }
19+
- { php-version: 8.3, dependencies: highest, pimcore_version: "11.x-dev as 11.99.9", experimental: true }
1520
steps:
1621
- name: Checkout
1722
uses: actions/checkout@v3
1823

1924
- name: Install PHP
2025
uses: shivammathur/setup-php@v2
2126
with:
22-
php-version: 8.1
27+
php-version: "${{ matrix.php-version }}"
2328
extensions: curl, mbstring, openssl, pdo, pdo_sqlite
2429
ini-values: memory_limit=-1, date.timezone='UTC'
2530
coverage: xdebug
@@ -28,8 +33,18 @@ jobs:
2833
- name: Validate composer.json and composer.lock
2934
run: composer validate
3035

31-
- name: Install dependencies
32-
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
36+
- name: "Update Pimcore version"
37+
env:
38+
PIMCORE_VERSION: "${{ matrix.pimcore_version }}"
39+
run: |
40+
if [ ! -z "$PIMCORE_VERSION" ]; then
41+
composer require --no-update pimcore/pimcore:"${PIMCORE_VERSION}"
42+
fi
43+
44+
- name: "Install dependencies with Composer"
45+
uses: "ramsey/composer-install@v2"
46+
with:
47+
dependency-versions: "${{ matrix.dependencies }}"
3348

3449
- name: Run tests
3550
run: php vendor/bin/codecept run

.github/workflows/qodana.yaml

Lines changed: 0 additions & 54 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
},
2323
"require": {
24-
"php": "~8.1.0 || ~8.2.0",
24+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
2525
"pimcore/pimcore": "^11.0",
2626
"friendsofphp/proxy-manager-lts": "^1"
2727
},

0 commit comments

Comments
 (0)