Skip to content

Commit

Permalink
IBX-8119: Upgraded minimum PHP version to 8.3 and PHPUnit to ^9.6 (#23)
Browse files Browse the repository at this point in the history
For more details see https://issues.ibexa.co/browse/IBX-8119 or #23

Key changes:

* Bumped minimum PHP version requirement to >=8.3

* [Composer] Disallowed plugins

* [Composer] Bumped PHPUnit requirement to ^9.6

* [Composer] Bumped Ibexa Code Style to ~2.0.0

* [Git] Added PHPUnit & PHP CS Fixer cache to .gitignore

---------

Co-Authored-By: Paweł Niedzielski <Steveb-p@users.noreply.github.com>
  • Loading branch information
alongosz and Steveb-p authored Jun 3, 2024
1 parent d45271e commit 8e92a5d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ on:
jobs:
cs-fix:
name: Run code style check
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
strategy:
matrix:
php:
- '8.0'
- '8.3'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -26,29 +26,26 @@ jobs:
extensions: 'pdo_sqlite, gd'
tools: cs2pr

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v3
with:
dependency-versions: "highest"
dependency-versions: highest

- name: Run code style check
run: composer run-script check-cs -- --format=checkstyle | cs2pr

tests:
name: Tests
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
composer_options: [ "" ]
- '8.3'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -58,10 +55,9 @@ jobs:
extensions: pdo_sqlite, gd
tools: cs2pr

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v3
with:
dependency-versions: "highest"
composer-options: "${{ matrix.composer_options }}"
dependency-versions: highest

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/composer.lock
/vendor
/.php_cs.cache
/.phpunit.result.cache
/.php-cs-fixer.cache
21 changes: 12 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@
"ezsystems/ezplatform-standard-design": "*"
},
"require": {
"symfony/http-kernel": "^5.0",
"ibexa/design-engine": "~5.0.0@dev",
"ibexa/core": "~5.0.0@dev",
"php": "^7.4 || ^8.0"
"php": " >=8.3",
"ibexa/core": "~5.0.x-dev",
"ibexa/design-engine": "~5.0.x-dev",
"symfony/http-kernel": "^5.0"
},
"require-dev": {
"ibexa/doctrine-schema": "~5.0.0@dev",
"ibexa/ci-scripts": "^0.2@dev",
"ibexa/code-style": "~2.0.0",
"ibexa/doctrine-schema": "~5.0.x-dev",
"matthiasnoback/symfony-dependency-injection-test": "^4.1",
"phpunit/phpunit": "^8.1",
"ibexa/code-style": "^1.0",
"friendsofphp/php-cs-fixer": "^3.0",
"ibexa/ci-scripts": "^0.2@dev"
"phpunit/phpunit": "^9.6"
},
"autoload": {
"psr-4": {
Expand All @@ -44,5 +43,9 @@
"branch-alias": {
"dev-main": "5.0.x-dev"
}
},
"config": {
"allow-plugins": false,
"sort-packages": true
}
}

0 comments on commit 8e92a5d

Please sign in to comment.