ci: test Moodle 5.0 and 5.1
Moodle Plugin CI / Test (Moodle 5.2.2, PHP 8.4, mysql) (push) Successful in 3m1s
Moodle Plugin CI / Test (Moodle 4.5.13, PHP 8.1.34, postgresql) (push) Successful in 2m56s
Moodle Plugin CI / Test (Moodle 5.0.9, PHP 8.2.33, postgresql) (push) Successful in 3m9s
Moodle Plugin CI / Test (Moodle 5.1.6, PHP 8.2.33, postgresql) (push) Successful in 3m2s
Moodle Plugin CI / Test (Moodle 5.2.2, PHP 8.4, postgresql) (push) Successful in 3m31s

This commit is contained in:
2026-08-24 01:36:57 +04:00
parent 367fa38f44
commit 81a95462a2
3 changed files with 86 additions and 2 deletions
+50
View File
@@ -13,6 +13,11 @@ x-ci: &ci
moodle-plugin-ci --version
moodle-plugin-ci install --plugin /plugin --branch "$$MOODLE_BRANCH" --db-host "$$DB_HOST"
test "$$(git -C /workspace/moodle rev-parse HEAD)" = "$$MOODLE_COMMIT"
moodle_root=/workspace/moodle
moodle_wwwroot="$$moodle_root/$$MOODLE_WWWROOT"
test -f "$$moodle_wwwroot/version.php"
test -d "$$moodle_wwwroot/local/webhooks"
test "$$MOODLE_WWWROOT" != public || test ! -e "$$moodle_root/version.php"
moodle-plugin-ci phplint
moodle-plugin-ci phpcs --max-warnings 0
moodle-plugin-ci phpdoc --max-warnings 0
@@ -59,6 +64,7 @@ services:
DB_USER: postgres
MOODLE_BRANCH: v5.2.2
MOODLE_COMMIT: acfa383c13dd46c83ca82894a8e95fac273fda33
MOODLE_WWWROOT: public
NPM_CONFIG_FETCH_RETRIES: 5
ci-mysql:
@@ -75,6 +81,7 @@ services:
DB_USER: root
MOODLE_BRANCH: v5.2.2
MOODLE_COMMIT: acfa383c13dd46c83ca82894a8e95fac273fda33
MOODLE_WWWROOT: public
NPM_CONFIG_FETCH_RETRIES: 5
ci-moodle45:
@@ -95,4 +102,47 @@ services:
DB_USER: postgres
MOODLE_BRANCH: v4.5.13
MOODLE_COMMIT: 8cbae18a2898cfd8266ec91ac206e12004f0ff5f
MOODLE_WWWROOT: .
NPM_CONFIG_FETCH_RETRIES: 5
ci-moodle50:
<<: *ci
profiles:
- moodle50
build:
context: .
dockerfile: .docker/ci/Dockerfile
args:
PHP_IMAGE: moodlehq/moodle-php-apache:8.2@sha256:3dae569f65e4ba1d2a413ea261d1dca72643bfa08a1e28a3d104a4024c4f040c
depends_on:
postgres:
condition: service_healthy
environment:
DB: pgsql
DB_HOST: postgres
DB_USER: postgres
MOODLE_BRANCH: v5.0.9
MOODLE_COMMIT: 152bf2ebbdd1f994331af21c80332b8d9051581c
MOODLE_WWWROOT: .
NPM_CONFIG_FETCH_RETRIES: 5
ci-moodle51:
<<: *ci
profiles:
- moodle51
build:
context: .
dockerfile: .docker/ci/Dockerfile
args:
PHP_IMAGE: moodlehq/moodle-php-apache:8.2@sha256:3dae569f65e4ba1d2a413ea261d1dca72643bfa08a1e28a3d104a4024c4f040c
depends_on:
postgres:
condition: service_healthy
environment:
DB: pgsql
DB_HOST: postgres
DB_USER: postgres
MOODLE_BRANCH: v5.1.6
MOODLE_COMMIT: 17513f6614237b530de7903fe32117fa026384c2
MOODLE_WWWROOT: public
NPM_CONFIG_FETCH_RETRIES: 5