ci: add MySQL 8.4 test lane
Moodle Plugin CI / Test (mysql) (push) Successful in 3m45s
Moodle Plugin CI / Test (postgresql) (push) Successful in 3m15s

This commit is contained in:
2026-08-23 22:58:57 +04:00
parent d76637c7c3
commit 82023483ff
4 changed files with 83 additions and 29 deletions
+15 -4
View File
@@ -13,19 +13,30 @@ permissions:
jobs:
test:
name: Test (${{ matrix.database }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- database: postgresql
profile: ""
service: ci
- database: mysql
profile: --profile mysql
service: ci-mysql
env:
COMPOSE_PROJECT_NAME: local_webhooks_${{ gitea.run_id }}_${{ gitea.run_attempt }}
COMPOSE_PROJECT_NAME: local_webhooks_${{ gitea.run_id }}_${{ gitea.run_attempt }}_${{ matrix.database }}
steps:
- name: Check out repository
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Build test image
run: docker compose build --pull ci
run: docker compose ${{ matrix.profile }} build --pull ${{ matrix.service }}
- name: Test plugin
run: docker compose up --abort-on-container-exit --exit-code-from ci
run: docker compose ${{ matrix.profile }} up --abort-on-container-exit --exit-code-from ${{ matrix.service }} ${{ matrix.service }}
- name: Clean up
if: always()
run: docker compose down --volumes --remove-orphans
run: docker compose ${{ matrix.profile }} down --volumes --remove-orphans --rmi local