Skip to content

Commit

Permalink
MBS-8820: Add workflows for mysql database
Browse files Browse the repository at this point in the history
  • Loading branch information
PM84 committed Feb 18, 2024
1 parent a2657d1 commit c8bcdd8
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/moodle-plugin-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,50 @@ 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:
include:
# 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
Expand Down Expand Up @@ -134,4 +153,4 @@ jobs:

- name: Mark cancelled jobs as failed.
if: ${{ cancelled() }}
run: exit 1
run: exit 1

0 comments on commit c8bcdd8

Please sign in to comment.