Skip to content

Commit

Permalink
Added php 8.3 support (#41)
Browse files Browse the repository at this point in the history
* 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 <herbert.roth@pimcore.com>
  • Loading branch information
fashxp and herbertroth authored Jun 11, 2024
1 parent 76d249e commit 3c170b8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 59 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/codeception.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
include:
- { php-version: 8.1, 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 }
steps:
- name: Checkout
uses: actions/checkout@v3

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

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
- 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 tests
run: php vendor/bin/codecept run
Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/qodana.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
},
"require": {
"php": "~8.1.0 || ~8.2.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"pimcore/pimcore": "^11.0",
"friendsofphp/proxy-manager-lts": "^1"
},
Expand Down

0 comments on commit 3c170b8

Please sign in to comment.