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