From c8bcdd8d3bdc5cb38a56ab04e956dfc4690fcf31 Mon Sep 17 00:00:00 2001 From: Peter Mayer Date: Sun, 18 Feb 2024 21:02:04 +0100 Subject: [PATCH] MBS-8820: Add workflows for mysql database --- .github/workflows/moodle-plugin-ci.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/moodle-plugin-ci.yml b/.github/workflows/moodle-plugin-ci.yml index 920a65b..2ec0148 100644 --- a/.github/workflows/moodle-plugin-ci.yml +++ b/.github/workflows/moodle-plugin-ci.yml @@ -27,6 +27,17 @@ jobs: - 3306:3306 options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 3 + mysqldb: + image: mysql:8.0 + env: + MYSQL_ALLOW_EMPTY_PASSWORD: "true" + MYSQL_CHARACTER_SET_SERVER: "utf8mb4" + MYSQL_COLLATION_SERVER: "utf8mb4_unicode_ci" + ports: + - 13306:3306 + options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 3 + + strategy: fail-fast: false matrix: @@ -34,24 +45,32 @@ jobs: # Moodle 4.1 (LTS), PHP 7.4 to 8.1, PostgreSQL and MariaDB - {moodle-branch: 'MOODLE_401_STABLE', php: '7.4', database: 'pgsql'} - {moodle-branch: 'MOODLE_401_STABLE', php: '7.4', database: 'mariadb'} + - {moodle-branch: 'MOODLE_401_STABLE', php: '7.4', database: 'mysqldb'} - {moodle-branch: 'MOODLE_401_STABLE', php: '8.0', database: 'pgsql'} - {moodle-branch: 'MOODLE_401_STABLE', php: '8.0', database: 'mariadb'} + - {moodle-branch: 'MOODLE_401_STABLE', php: '8.0', database: 'mysqldb'} - {moodle-branch: 'MOODLE_401_STABLE', php: '8.1', database: 'pgsql'} - {moodle-branch: 'MOODLE_401_STABLE', php: '8.1', database: 'mariadb'} + - {moodle-branch: 'MOODLE_401_STABLE', php: '8.1', database: 'mysqldb'} # Moodle 4.2, PHP 8.0 to 8.1, PostgreSQL and MariaDB - {moodle-branch: 'MOODLE_402_STABLE', php: '8.0', database: 'pgsql'} - {moodle-branch: 'MOODLE_402_STABLE', php: '8.0', database: 'mariadb'} + - {moodle-branch: 'MOODLE_402_STABLE', php: '8.0', database: 'mysqldb'} - {moodle-branch: 'MOODLE_402_STABLE', php: '8.1', database: 'pgsql'} - {moodle-branch: 'MOODLE_402_STABLE', php: '8.1', database: 'mariadb'} + - {moodle-branch: 'MOODLE_402_STABLE', php: '8.1', database: 'mysqldb'} # Moodle 4.3, PHP 8.0 to 8.2, PostgreSQL and MariaDB - {moodle-branch: 'MOODLE_403_STABLE', php: '8.0', database: 'pgsql'} - {moodle-branch: 'MOODLE_403_STABLE', php: '8.0', database: 'mariadb'} + - {moodle-branch: 'MOODLE_403_STABLE', php: '8.0', database: 'mysqldb'} - {moodle-branch: 'MOODLE_403_STABLE', php: '8.1', database: 'pgsql'} - {moodle-branch: 'MOODLE_403_STABLE', php: '8.1', database: 'mariadb'} + - {moodle-branch: 'MOODLE_403_STABLE', php: '8.1', database: 'mysqldb'} - {moodle-branch: 'MOODLE_403_STABLE', php: '8.2', database: 'pgsql'} - {moodle-branch: 'MOODLE_403_STABLE', php: '8.2', database: 'mariadb'} + - {moodle-branch: 'MOODLE_403_STABLE', php: '8.2', database: 'mysqldb'} steps: - name: Check out repository code @@ -134,4 +153,4 @@ jobs: - name: Mark cancelled jobs as failed. if: ${{ cancelled() }} - run: exit 1 \ No newline at end of file + run: exit 1