Skip to content

Commit

Permalink
ADDED: Support for PHP 8.2, doctrine/doctrine-module 5 and symfony/co…
Browse files Browse the repository at this point in the history
…nsole 6
  • Loading branch information
fabiang committed Nov 28, 2022
1 parent 647fc2f commit 1644d3e
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 5,084 deletions.
65 changes: 35 additions & 30 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Unit Tests
on:
push:
branches:
- '*'
- "*"
pull_request:
- '*'
- "*"

jobs:
unittest:
Expand All @@ -15,35 +15,40 @@ jobs:
matrix:
# operating-system: [ubuntu-latest, windows-latest, macOS-latest]
php:
- version: '7.4'
composer-args: ''
- version: '8.0'
composer-args: '--ignore-platform-reqs'
prefer-lowest: ['', '--prefer-lowest']
- version: "7.4"
composer-args: ""
- version: "8.0"
composer-args: ""
- version: "8.1"
composer-args: "--ignore-platform-req=php"
- version: "8.2"
composer-args: "--ignore-platform-req=php"
prefer-lowest: ["", "--prefer-lowest"]

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

steps:
- uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php.version }}

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer update --prefer-dist --no-progress --with-all-dependencies ${{ matrix.prefer-lowest }} ${{ matrix.php.composer-args }}

- name: Run test suite
run: ./vendor/bin/phpunit --verbose
- uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php.version }}

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer update --prefer-dist --no-progress ${{ matrix.prefer-lowest }} ${{ matrix.php.composer-args }}

- name: Run test suite
run: ./vendor/bin/phpunit --verbose
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",
"doctrine/doctrine-module": "^3.0 || ^4.0",
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0",
"doctrine/doctrine-module": "^3.0 || ^4.0 || ^5.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"
"symfony/console": "^4.0 || ^5.0 || ^6.0"
},
"autoload": {
"psr-4": {
Expand All @@ -39,4 +39,4 @@
"config": {
"sort-packages": true
}
}
}
Loading

0 comments on commit 1644d3e

Please sign in to comment.