Merge pull request #56 from trompette/support-doctrine-dbal-4 #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Automated Tests" | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
jobs: | |
phpunit: | |
name: "PHPUnit" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
dbal-version: | |
- "3.8.*" | |
- "4.0.*" | |
php-version: | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
symfony-version: | |
- "5.4.*" | |
- "6.4.*" | |
- "7.0.*" | |
exclude: | |
- { php-version: "8.1", symfony-version: "7.0.*" } | |
- { dbal-version: "4.0.*", symfony-version: "5.4.*" } | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP version from matrix" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
- name: "Validate composer.json and composer.lock" | |
run: "composer validate" | |
- name: "Require Doctrine DBAL and Symfony versions from matrix" | |
run: "composer require --ansi --no-interaction --no-progress --no-suggest --optimize-autoloader --prefer-dist doctrine/dbal:${{ matrix.dbal-version }} symfony/symfony:${{ matrix.symfony-version }}" | |
- name: "Run test suite" | |
run: "composer test" |