ci: test Moodle 4.5 LTS
This commit is contained in:
+20
-5
@@ -13,26 +13,41 @@ permissions:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test (${{ matrix.database }})
|
||||
name: Test (Moodle ${{ matrix.moodle }}, PHP ${{ matrix.php }}, ${{ matrix.database }})
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- database: postgresql
|
||||
- moodle: "5.2.2"
|
||||
moodle_id: moodle52
|
||||
php: "8.4"
|
||||
php_image: moodlehq/moodle-php-apache:8.4@sha256:07cac70e0ed3f96f334ffeece92075b98adfbe4110312a3a9308b95eab8e2080
|
||||
database: postgresql
|
||||
profile: ""
|
||||
service: ci
|
||||
- database: mysql
|
||||
- moodle: "5.2.2"
|
||||
moodle_id: moodle52
|
||||
php: "8.4"
|
||||
php_image: moodlehq/moodle-php-apache:8.4@sha256:07cac70e0ed3f96f334ffeece92075b98adfbe4110312a3a9308b95eab8e2080
|
||||
database: mysql
|
||||
profile: --profile mysql
|
||||
service: ci-mysql
|
||||
- moodle: "4.5.13"
|
||||
moodle_id: moodle45
|
||||
php: "8.1.34"
|
||||
php_image: moodlehq/moodle-php-apache:8.1@sha256:13be2641be8883e79fd1e97374d0df759d80c81cce8331f3e85035923b7f4576
|
||||
database: postgresql
|
||||
profile: --profile moodle45
|
||||
service: ci-moodle45
|
||||
env:
|
||||
COMPOSE_PROJECT_NAME: local_webhooks_${{ gitea.run_id }}_${{ gitea.run_attempt }}_${{ matrix.database }}
|
||||
COMPOSE_PROJECT_NAME: local_webhooks_${{ gitea.run_id }}_${{ gitea.run_attempt }}_${{ matrix.moodle_id }}_${{ matrix.database }}
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Build test image
|
||||
run: docker compose ${{ matrix.profile }} build --pull ${{ matrix.service }}
|
||||
run: docker compose ${{ matrix.profile }} build --pull --build-arg PHP_IMAGE=${{ matrix.php_image }} ${{ matrix.service }}
|
||||
|
||||
- name: Test plugin
|
||||
run: docker compose ${{ matrix.profile }} up --abort-on-container-exit --exit-code-from ${{ matrix.service }} ${{ matrix.service }}
|
||||
|
||||
Reference in New Issue
Block a user