@@ -13,11 +13,21 @@ jobs:
1313 static-analysis-phpstan :
1414 name : " Static Analysis with PHPStan"
1515 runs-on : " ubuntu-20.04"
16+ continue-on-error : " ${{ matrix.status == 'experimental' }}"
1617
1718 strategy :
19+ fail-fast : false
1820 matrix :
1921 php-version :
2022 - " 8.0"
23+ dbal-version :
24+ - " default"
25+ status :
26+ - " stable"
27+ include :
28+ - dbal-version : " ^3.0"
29+ php-version : " 8.0"
30+ status : " experimental"
2131
2232 steps :
2333 - name : " Checkout code"
@@ -29,22 +39,37 @@ jobs:
2939 coverage : " none"
3040 php-version : " ${{ matrix.php-version }}"
3141
42+ - name : " Require DBAL 3"
43+ run : " composer require doctrine/dbal ${{ matrix.dbal-version }} --no-update"
44+ if : " ${{ matrix.dbal-version != 'default' }}"
45+
3246 - name : " Install dependencies with Composer"
3347 uses : " ramsey/composer-install@v1"
3448 with :
3549 dependency-versions : " highest"
3650
3751 - name : " Run a static analysis with phpstan/phpstan"
52+ continue-on-error : " ${{ matrix.status == 'experimental' }}"
3853 run : " vendor/bin/phpstan analyse"
3954
4055 static-analysis-psalm :
4156 name : " Static Analysis with Psalm"
4257 runs-on : " ubuntu-20.04"
58+ continue-on-error : " ${{ matrix.status == 'experimental' }}"
4359
4460 strategy :
61+ fail-fast : false
4562 matrix :
4663 php-version :
4764 - " 8.0"
65+ dbal-version :
66+ - " default"
67+ status :
68+ - " stable"
69+ include :
70+ - dbal-version : " ^3.0"
71+ php-version : " 8.0"
72+ status : " experimental"
4873
4974 steps :
5075 - name : " Checkout code"
@@ -56,10 +81,15 @@ jobs:
5681 coverage : " none"
5782 php-version : " ${{ matrix.php-version }}"
5883
84+ - name : " Require DBAL 3"
85+ run : " composer require doctrine/dbal ${{ matrix.dbal-version }} --no-update"
86+ if : " ${{ matrix.dbal-version != 'default' }}"
87+
5988 - name : " Install dependencies with Composer"
6089 uses : " ramsey/composer-install@v1"
6190 with :
6291 dependency-versions : " highest"
6392
6493 - name : " Run a static analysis with vimeo/psalm"
94+ continue-on-error : " ${{ matrix.status == 'experimental' }}"
6595 run : " vendor/bin/psalm --show-info=false --stats --output-format=github --threads=$(nproc)"
0 commit comments