@@ -40,13 +40,16 @@ jobs:
40
40
strategy :
41
41
fail-fast : false
42
42
matrix :
43
- php-versions : ['7.3', '7.4', '8.0']
43
+ php-versions : ['7.3', '7.4', '8.0', '8.1' ]
44
44
db-platforms : ['MySQLi', 'Postgre', 'SQLite3', 'SQLSRV']
45
45
mysql-versions : ['5.7']
46
46
include :
47
- - php-versions : 7.4
47
+ - php-versions : ' 7.4'
48
48
db-platforms : MySQLi
49
- mysql-versions : 8.0
49
+ mysql-versions : ' 8.0'
50
+ # @todo remove once 8.1 is stable enough
51
+ - php-versions : ' 8.1'
52
+ composer-flag : ' --ignore-platform-req=php'
50
53
51
54
services :
52
55
mysql :
@@ -121,17 +124,18 @@ jobs:
121
124
122
125
- name : Install dependencies
123
126
run : |
124
- composer update --ansi --no-interaction
125
- composer remove --ansi --dev --unused -W rector/rector phpstan/phpstan friendsofphp/php-cs-fixer nexusphp/cs-config
127
+ composer update --ansi --no-interaction ${{ matrix.composer-flag }}
128
+ composer remove --ansi --dev --unused -W ${{ matrix.composer-flag }} -- rector/rector phpstan/phpstan friendsofphp/php-cs-fixer nexusphp/cs-config
126
129
php -r 'file_put_contents("vendor/laminas/laminas-zendframework-bridge/src/autoload.php", "");'
127
130
env :
128
131
COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
129
132
130
- - name : Profile slow tests in PHP 7.4 MySQLi for now
131
- if : matrix.php-versions == '7.4 ' && matrix.db-platforms == 'MySQLi'
133
+ - name : Profile slow tests in PHP 8.0 MySQLi for now
134
+ if : matrix.php-versions == '8.0 ' && matrix.db-platforms == 'MySQLi'
132
135
run : echo "TACHYCARDIA_MONITOR_GA=enabled" >> $GITHUB_ENV
133
136
134
137
- name : Test with PHPUnit
138
+ continue-on-error : ${{ matrix.php-versions == '8.1' }}
135
139
run : script -e -c "vendor/bin/phpunit --color=always"
136
140
env :
137
141
DB : ${{ matrix.db-platforms }}
0 commit comments