From 3b1ca2c3cda4b88f8ed898b86ed5ce1d69735fb1 Mon Sep 17 00:00:00 2001 From: Stefan Topfstedt Date: Wed, 5 Jun 2024 15:25:52 -0700 Subject: [PATCH] test against Moodle main and 4.4 stable with PHP 8.3. while at it, log workflows into the Ilios Slack. --- .github/workflows/ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0768493..dcc0622 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,8 @@ on: pull_request: schedule: - cron: '33 2 * * 1' # weekly, on Monday morning +env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ILIOS_DEPLOYMENT_WEBHOOK_URL }} jobs: test: @@ -26,9 +28,12 @@ jobs: fail-fast: false matrix: include: - - php: '8.2' + - php: '8.3' moodle-branch: 'main' database: 'mariadb' + - php: '8.3' + moodle-branch: 'MOODLE_404_STABLE' + database: 'mariadb' - php: '8.2' moodle-branch: 'MOODLE_403_STABLE' database: 'mariadb' @@ -106,4 +111,10 @@ jobs: - name: Mark cancelled jobs as failed. if: ${{ cancelled() }} - run: exit 1 \ No newline at end of file + run: exit 1 + + - uses: act10ns/slack@v2.0.0 + with: + status: ${{ job.status }} + message: Moodle Plugin CI failed {{ env.GITHUB_SERVER_URL }}/{{ env.GITHUB_REPOSITORY }}/actions/runs/{{ env.GITHUB_RUN_ID }} + if: failure()