ci: test Moodle 4.5 LTS
Moodle Plugin CI / Test (Moodle 5.2.2, PHP 8.4, mysql) (push) Successful in 2m58s
Moodle Plugin CI / Test (Moodle 4.5.13, PHP 8.1.34, postgresql) (push) Successful in 2m59s
Moodle Plugin CI / Test (Moodle 5.2.2, PHP 8.4, postgresql) (push) Successful in 3m14s

This commit is contained in:
2026-08-24 00:21:28 +04:00
parent 6c447a060e
commit 367fa38f44
4 changed files with 63 additions and 9 deletions
+24 -2
View File
@@ -11,8 +11,8 @@ x-ci: &ci
composer --version
node --version
moodle-plugin-ci --version
moodle-plugin-ci install --plugin /plugin --branch v5.2.2 --db-host "$$DB_HOST"
test "$$(git -C /workspace/moodle rev-parse HEAD)" = "acfa383c13dd46c83ca82894a8e95fac273fda33"
moodle-plugin-ci install --plugin /plugin --branch "$$MOODLE_BRANCH" --db-host "$$DB_HOST"
test "$$(git -C /workspace/moodle rev-parse HEAD)" = "$$MOODLE_COMMIT"
moodle-plugin-ci phplint
moodle-plugin-ci phpcs --max-warnings 0
moodle-plugin-ci phpdoc --max-warnings 0
@@ -58,6 +58,7 @@ services:
DB_HOST: postgres
DB_USER: postgres
MOODLE_BRANCH: v5.2.2
MOODLE_COMMIT: acfa383c13dd46c83ca82894a8e95fac273fda33
NPM_CONFIG_FETCH_RETRIES: 5
ci-mysql:
@@ -73,4 +74,25 @@ services:
DB_PASS: moodle_ci
DB_USER: root
MOODLE_BRANCH: v5.2.2
MOODLE_COMMIT: acfa383c13dd46c83ca82894a8e95fac273fda33
NPM_CONFIG_FETCH_RETRIES: 5
ci-moodle45:
<<: *ci
profiles:
- moodle45
build:
context: .
dockerfile: .docker/ci/Dockerfile
args:
PHP_IMAGE: moodlehq/moodle-php-apache:8.1@sha256:13be2641be8883e79fd1e97374d0df759d80c81cce8331f3e85035923b7f4576
depends_on:
postgres:
condition: service_healthy
environment:
DB: pgsql
DB_HOST: postgres
DB_USER: postgres
MOODLE_BRANCH: v4.5.13
MOODLE_COMMIT: 8cbae18a2898cfd8266ec91ac206e12004f0ff5f
NPM_CONFIG_FETCH_RETRIES: 5