ci: add Moodle 5.2 Docker checks
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: Moodle Plugin CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
- main
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
COMPOSE_PROJECT_NAME: local_webhooks_${{ gitea.run_id }}_${{ gitea.run_attempt }}
|
||||
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
|
||||
|
||||
- name: Test plugin
|
||||
run: docker compose up --abort-on-container-exit --exit-code-from ci
|
||||
|
||||
- name: Clean up
|
||||
if: always()
|
||||
run: docker compose down --volumes --remove-orphans
|
||||
Reference in New Issue
Block a user