mirror of
https://github.com/flarum/core.git
synced 2025-02-19 15:44:56 +01:00
Add DB prefix to PHP tests (#1855)
* Add test job with PHP 7.3, MySQL & custom prefix * Add prefix MariaDB test * Add PHP 7.4 to tests * Remove PHP 7.4 from tests This reverts commit 270cba2f5f3883cba856d891e3b2f5feda8a2b01.
This commit is contained in:
parent
e88a9394ed
commit
3cced4156f
30
.github/workflows/test.yml
vendored
30
.github/workflows/test.yml
vendored
@ -9,15 +9,38 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
php: [7.1, 7.2, 7.3]
|
||||
db: ['mysql:5.7', mariadb]
|
||||
service: ['mysql:5.7', mariadb]
|
||||
prefix: ['', flarum_]
|
||||
|
||||
include:
|
||||
- service: 'mysql:5.7'
|
||||
db: MySQL
|
||||
- service: mariadb
|
||||
db: MariaDB
|
||||
- prefix: flarum_
|
||||
prefixStr: (prefix)
|
||||
|
||||
exclude:
|
||||
- php: 7.1
|
||||
service: 'mysql:5.7'
|
||||
prefix: flarum_
|
||||
- php: 7.1
|
||||
service: mariadb
|
||||
prefix: flarum_
|
||||
- php: 7.2
|
||||
service: 'mysql:5.7'
|
||||
prefix: flarum_
|
||||
- php: 7.2
|
||||
service: mariadb
|
||||
prefix: flarum_
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: ${{ matrix.db }}
|
||||
image: ${{ matrix.service }}
|
||||
ports:
|
||||
- 13306:3306
|
||||
|
||||
name: PHP ${{ matrix.php }} with ${{ matrix.db }}
|
||||
name: 'PHP ${{ matrix.php }} / ${{ matrix.db }} ${{ matrix.prefixStr }}'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
@ -36,6 +59,7 @@ jobs:
|
||||
env:
|
||||
DB_PORT: 13306
|
||||
DB_PASSWORD: root
|
||||
DB_PREFIX: ${{ matrix.prefix }}
|
||||
|
||||
- name: Run Composer tests
|
||||
run: composer test
|
||||
|
Loading…
x
Reference in New Issue
Block a user