Skip to content

Commit 5adf9ce

Browse files
committed
Update github ci for 5.0
1 parent 15001da commit 5adf9ce

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
services:
1010
postgres:
11-
image: postgres:14
11+
image: postgres:15
1212
env:
1313
POSTGRES_USER: 'postgres'
1414
POSTGRES_HOST_AUTH_METHOD: 'trust'
@@ -20,6 +20,8 @@ jobs:
2020
env:
2121
MYSQL_USER: 'root'
2222
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
23+
MYSQL_CHARACTER_SET_SERVER: "utf8mb4"
24+
MYSQL_COLLATION_SERVER: "utf8mb4_unicode_ci"
2325
ports:
2426
- 3306:3306
2527
options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 3
@@ -29,16 +31,19 @@ jobs:
2931
matrix:
3032
include:
3133
# Highest php versions supported by each branch (with main always being tested twice).
32-
- php: 8.3
34+
- php: 8.4
3335
moodle-branch: main
3436
database: pgsql
35-
- php: 8.3
37+
- php: 8.4
3638
moodle-branch: main
3739
database: mariadb
38-
- php: 8.2
40+
- php: 8.4
41+
moodle-branch: MOODLE_500_STABLE
42+
database: pgsql
43+
- php: 8.3
3944
moodle-branch: MOODLE_405_STABLE
4045
database: pgsql
41-
- php: 8.2
46+
- php: 8.3
4247
moodle-branch: MOODLE_404_STABLE
4348
database: pgsql
4449
- php: 8.2
@@ -55,6 +60,9 @@ jobs:
5560
- php: 8.2
5661
moodle-branch: main
5762
database: mariadb
63+
- php: 8.2
64+
moodle-branch: MOODLE_500_STABLE
65+
database: pgsql
5866
- php: 8.1
5967
moodle-branch: MOODLE_405_STABLE
6068
database: pgsql
@@ -69,7 +77,7 @@ jobs:
6977
database: pgsql
7078
steps:
7179
- name: Check out repository code
72-
uses: actions/checkout@v3
80+
uses: actions/checkout@v4
7381
with:
7482
path: plugin
7583

@@ -83,15 +91,14 @@ jobs:
8391

8492
- name: Initialise moodle-plugin-ci
8593
run: |
86-
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
94+
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
8795
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
8896
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
8997
sudo locale-gen en_AU.UTF-8
9098
echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV
9199
92100
- name: Install moodle-plugin-ci
93-
run: |
94-
moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
101+
run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
95102
env:
96103
DB: ${{ matrix.database }}
97104
MOODLE_BRANCH: ${{ matrix.moodle-branch }}

0 commit comments

Comments
 (0)