Skip to content

Commit

Permalink
Add newer PHP and ORM versions to test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Jun 10, 2024
1 parent 112270c commit 0eb2adf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ jobs:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
orm-version:
- '2.7'
- '3.0'

name: PHP ${{ matrix.php-version }}
name: PHP ${{ matrix.php-version }} / ORM ${{ matrix.orm-version }}
steps:
- uses: actions/checkout@v2

Expand All @@ -35,6 +39,8 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- run: composer require --dev "doctrine/orm:^${{ matrix.orm-version }}" --no-update

- run: composer install

- run: vendor/bin/phpunit
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"doctrine/persistence": "^1.3|^2.0|^3.0"
},
"require-dev": {
"doctrine/orm": "^2.7",
"doctrine/orm": "^2.7|^3.0",
"doctrine/mongodb-odm": "^2.2",
"phpunit/phpunit": "^9.5",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-doctrine": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-symfony": "^1.0"
"phpstan/phpstan": "^1.11",
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpstan/phpstan-doctrine": "^1.4",
"phpstan/phpstan-phpunit": "^1.4",
"phpstan/phpstan-symfony": "^1.4"
},
"suggest": {
"doctrine/doctrine-fixtures-bundle": "To use with ORMFixtureInterface and register fixtures automatically in the Dependency Injection container."
Expand Down

0 comments on commit 0eb2adf

Please sign in to comment.