1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

Add test job with PHP 7.3, MySQL & custom prefix

This commit is contained in:
David Sevilla Martin
2019-08-21 18:25:27 -04:00
parent 70e98f810c
commit baffa62956

View File

@@ -9,15 +9,41 @@ jobs:
strategy: strategy:
matrix: matrix:
php: [7.1, 7.2, 7.3] 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_
- php: 7.3
service: mariadb
prefix: flarum_
services: services:
mysql: mysql:
image: ${{ matrix.db }} image: ${{ matrix.service }}
ports: ports:
- 13306:3306 - 13306:3306
name: PHP ${{ matrix.php }} with ${{ matrix.db }} name: 'PHP ${{ matrix.php }} / ${{ matrix.db }} ${{ matrix.prefixStr }}'
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
@@ -36,6 +62,7 @@ jobs:
env: env:
DB_PORT: 13306 DB_PORT: 13306
DB_PASSWORD: root DB_PASSWORD: root
DB_PREFIX: ${{ matrix.prefix }}
- name: Run Composer tests - name: Run Composer tests
run: composer test run: composer test