Allow doctrine/deprecations 1.0 (#1358) #608
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: "Static Analysis" | |
on: | |
pull_request: | |
branches: | |
- "*.x" | |
push: | |
branches: | |
- "*.x" | |
jobs: | |
static-analysis-phpstan: | |
name: "Static Analysis with PHPStan" | |
runs-on: "ubuntu-20.04" | |
strategy: | |
matrix: | |
dbal-version: | |
- "^2.11" | |
- "^3.0" | |
php-version: | |
- "7.2" | |
- "7.4" | |
- "8.0" | |
exclude: | |
- dbal-version: "^3.0" | |
php-version: "7.2" | |
steps: | |
- name: "Checkout code" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
extensions: "pdo_sqlite" | |
- name: "Require the right DBAL version" | |
run: "composer require doctrine/dbal:${{ matrix.dbal-version }} --no-update" | |
- name: "Install dependencies with Composer" | |
uses: "ramsey/composer-install@v1" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "Run a static analysis with phpstan/phpstan (dbal v2)" | |
run: "vendor/bin/phpstan analyse -c phpstan-dbal-2.neon.dist" | |
if: "contains(matrix.dbal-version, '^2.')" | |
- name: "Run a static analysis with phpstan/phpstan (dbal v3)" | |
run: "vendor/bin/phpstan analyse -c phpstan-dbal-3.neon.dist" | |
if: "contains(matrix.dbal-version, '^3.')" |