Skip to content

Commit

Permalink
Added support for PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiang committed Jan 24, 2024
1 parent 1644d3e commit 891ad75
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ jobs:
- version: "8.0"
composer-args: ""
- version: "8.1"
composer-args: "--ignore-platform-req=php"
composer-args: ""
- version: "8.2"
composer-args: "--ignore-platform-req=php"
composer-args: ""
- version: "8.3"
composer-args: ""
prefer-lowest: ["", "--prefer-lowest"]

name: Unit Tests - PHP ${{ matrix.php.version }} ${{ matrix.prefer-lowest }}

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

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand All @@ -40,7 +42,7 @@ jobs:

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Expand All @@ -51,4 +53,4 @@ jobs:
run: composer update --prefer-dist --no-progress ${{ matrix.prefer-lowest }} ${{ matrix.php.composer-args }}

- name: Run test suite
run: ./vendor/bin/phpunit --verbose
run: ./vendor/bin/phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/vendor/
phpunit.xml
.phpunit.result.cache
composer.lock
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
],
"minimum-stability": "stable",
"require": {
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0",
"doctrine/doctrine-module": "^3.0 || ^4.0 || ^5.0",
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"doctrine/doctrine-module": "^3.0 || ^4.0 || ^5.0 || ^6.0",
"doctrine/orm": "^2.5",
"fabiang/doctrine-migrations-liquibase": "^2.0",
"laminas/laminas-modulemanager": "^2.8",
"laminas/laminas-servicemanager": "^3.0",
"symfony/console": "^4.0 || ^5.0 || ^6.0"
"symfony/console": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"autoload": {
"psr-4": {
Expand All @@ -33,7 +33,7 @@
"fabiang/doctrine-migrations-liquibase-zf": "self.version"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^9.5 || ^10.0",
"phpspec/prophecy-phpunit": "^2.0"
},
"config": {
Expand Down

0 comments on commit 891ad75

Please sign in to comment.