Skip to content

Commit

Permalink
Added php 8.3 support (#166)
Browse files Browse the repository at this point in the history
* added php 8.3 support

* Update codeception.yaml

* Update static-analysis.yaml
  • Loading branch information
fashxp authored Jun 12, 2024
1 parent 58dae2f commit 1d80d59
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/codeception.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
strategy:
matrix:
include:
- { php-version: 8.2, dependencies: lowest, pimcore_version: "", experimental: false }
- { php-version: 8.2, dependencies: highest, pimcore_version: "", experimental: false }
- { php-version: "8.2", dependencies: "lowest", pimcore_version: "", experimental: false }
- { php-version: "8.3", dependencies: "highest", pimcore_version: "", experimental: false }
- { php-version: "8.3", dependencies: "highest", pimcore_version: "11.x-dev as 11.99.9", experimental: true }

services:
mariadb:
Expand Down Expand Up @@ -90,11 +91,19 @@ jobs:
chmod 755 .github/ci/scripts/setup-pimcore-environment-functional-tests.sh
.github/ci/scripts/setup-pimcore-environment-functional-tests.sh
- name: "Update Pimcore version"
env:
PIMCORE_VERSION: "${{ matrix.pimcore_version }}"
run: |
if [ ! -z "$PIMCORE_VERSION" ]; then
composer require --no-update pimcore/pimcore:"${PIMCORE_VERSION}"
fi
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"

- name: "Run Codeception"
run: |
vendor/bin/codecept run -c . -vvv --xml --coverage-xml
vendor/bin/codecept run -c . -vvv --xml --coverage-xml
5 changes: 3 additions & 2 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
matrix:
include:
- { php-version: "8.2", dependencies: "lowest", experimental: false }
- { php-version: "8.2", dependencies: "highest", pimcore_version: "11.x-dev as 11.99.9", experimental: true }
- { php-version: "8.3", dependencies: "highest", experimental: false }
- { php-version: "8.3", dependencies: "highest", pimcore_version: "11.x-dev as 11.99.9", experimental: true }
steps:
- name: "Checkout code"
uses: "actions/checkout@v2"
Expand Down Expand Up @@ -62,4 +63,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: phpstan-baseline.neon
path: phpstan-baseline.neon
path: phpstan-baseline.neon
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"php": "~8.2.0",
"php": "~8.2.0 || ~8.3.0 ",
"pimcore/pimcore": "^11.2.0",
"pimcore/static-resolver-bundle": "^1.4.0",
"pimcore/opensearch-client": "^1.0.0",
Expand Down

0 comments on commit 1d80d59

Please sign in to comment.