Skip to content

Commit

Permalink
add 2.x and 3.x matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Firehed committed Aug 30, 2024
1 parent e358993 commit 1a9a73b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- '8.3'
- '8.4-dev'
orm:
- '2.*'
- '3.0.0'
- '^2.9'
- '^3.0'

steps:
- name: Check out code
Expand All @@ -51,26 +51,20 @@ jobs:
${{ runner.os }}-php-${{ matrix.dependencies }}-
${{ runner.os }}-php-
- name: Install highest dependencies
if: ${{ matrix.dependencies == 'high' }}
- name: Install dependencies
run: composer update
--no-ansi
--no-interaction
--no-progress
--no-suggest
--prefer-dist

- name: Install lowest dependencies
if: ${{ matrix.dependencies == 'low' }}
run: composer update
--no-ansi
--no-interaction
--no-progress
--no-suggest
--prefer-dist
--prefer-lowest
${{ matrix.dependencies == 'low' && '--prefer-lowest' || '' }}

- name: Get specific ORM version
run: composer update
doctrine/orm:'${{ matrix.orm }}'
--with-all-dependencies
${{ matrix.dependencies == 'low' && '--prefer-lowest' || '' }}

- name: PHPUnit
run: vendor/bin/phpunit
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"php": "^8.1",
"doctrine/annotations": "^1.10 || ^2.0",
"doctrine/collections": "^1.6.8 || ^2.0",
"doctrine/orm": "^2.9 || ^3.0",
"doctrine/orm": "^2.9 | ^3.0",
"doctrine/persistence": "^1.3 || ^2.0 || ^3.0"
},
"require-dev": {
Expand Down

0 comments on commit 1a9a73b

Please sign in to comment.