From baffa62956f2d1d110bb679f269474e6aecf3580 Mon Sep 17 00:00:00 2001 From: David Sevilla Martin Date: Wed, 21 Aug 2019 18:25:27 -0400 Subject: [PATCH] Add test job with PHP 7.3, MySQL & custom prefix --- .github/workflows/test.yml | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index be23e3b55..9d936fa75 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,15 +9,41 @@ 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_ + - php: 7.3 + 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 +62,7 @@ jobs: env: DB_PORT: 13306 DB_PASSWORD: root + DB_PREFIX: ${{ matrix.prefix }} - name: Run Composer tests run: composer test