ci: add MySQL 8.4 test lane
This commit is contained in:
+15
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user