test: add MySQL 8.1 to the suite (#3870)

* Test using MySQL 8.1 also
* fix: db not added to matrix
* chore: add MySQL 8.1 to prefix tests
This commit is contained in:
IanM 2023-09-14 21:04:25 +01:00 committed by GitHub
parent e731fb6189
commit ee34217b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ on:
description: Versions of databases to test with. Should be array of strings encoded as JSON array
type: string
required: false
default: '["mysql:5.7", "mysql:8.0.30", "mariadb"]'
default: '["mysql:5.7", "mysql:8.0.30", "mysql:8.1.0", "mariadb"]'
php_ini_values:
description: PHP ini values
@ -76,6 +76,8 @@ jobs:
db: MySQL 8.0
- service: mariadb
db: MariaDB
- service: 'mysql:8.1.0'
db: MySQL 8.1
# Include Database prefix tests with only one PHP version.
- php: ${{ fromJSON(inputs.php_versions)[0] }}
@ -93,6 +95,11 @@ jobs:
db: MariaDB
prefix: flarum_
prefixStr: (prefix)
- php: ${{ fromJSON(inputs.php_versions)[0] }}
service: 'mysql:8.1.0'
db: MySQL 8.1
prefix: flarum_
prefixStr: (prefix)
# To reduce number of actions, we exclude some PHP versions from running with some DB versions.
exclude: