77 runs-on : ${{ matrix.operating-system }}
88 strategy :
99 matrix :
10- operating-system : [ubuntu-latest]
11- php-versions : ['7.4', '8.0' ]
10+ operating-system : [ ubuntu-latest ]
11+ php-versions : [ '8.1' ]
1212 name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1313
1414 services :
1515 mysql :
16- image : mysql:5.7
16+ image : mysql:8.0.23
1717 env :
1818 MYSQL_ROOT_PASSWORD : root
1919 MYSQL_DATABASE : test
@@ -32,15 +32,18 @@ jobs:
3232 extensions : mbstring, pdo, pdo_mysql, intl, zip
3333 coverage : none
3434
35- - name : Check PHP Version
35+ - name : Check PHP version
3636 run : php -v
3737
38- - name : Check Composer Version
38+ - name : Check Composer version
3939 run : composer -V
4040
41- - name : Check PHP Extensions
41+ - name : Check PHP extensions
4242 run : php -m
4343
44+ - name : Check MySQL version
45+ run : mysql -V
46+
4447 - name : Start MySQL
4548 run : sudo systemctl start mysql
4649
5053 - name : Validate composer.json and composer.lock
5154 run : composer validate
5255
53- - name : Install dependencies for PHP 7
54- if : matrix.php-versions < '8.0'
55- run : composer update --prefer-dist --no-progress
56-
57- - name : Install dependencies for PHP 8
58- if : matrix.php-versions >= '8.0'
59- run : composer update --prefer-dist --no-progress --ignore-platform-req=php
56+ - name : Install dependencies
57+ run : composer install --prefer-dist --no-progress --no-suggest
6058
6159 - name : Run test suite
6260 run : composer test:all
0 commit comments