Skip to content

Commit

Permalink
Moodle 4.4 checks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidherney committed May 9, 2024
1 parent 45f21f6 commit 6a67433
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,31 @@ jobs:
fail-fast: false
matrix:
include:
# Moodle 4.2, PHP 8.0, PostgreSQL
- php: '8.0' # 8.0-8.2
moodle-branch: 'MOODLE_402_STABLE'
database: pgsql
plugin-ci: ^4
# Moodle 4.2, PHP 8.1, PostgreSQL
- php: '8.1' # 8.0-8.2
moodle-branch: 'MOODLE_402_STABLE'
# Moodle 4.3, PHP 8.1, MariaDB
- php: '8.1'
moodle-branch: 'MOODLE_403_STABLE'
database: mariadb
plugin-ci: ^4
# Moodle 4.2, PHP 8.1, PostgreSQL
- php: '8.2' # 8.0-8.2
moodle-branch: 'MOODLE_402_STABLE'
# Moodle 4.3, PHP 8.2, PostgreSQL
- php: '8.2'
moodle-branch: 'MOODLE_403_STABLE'
database: pgsql
plugin-ci: ^4
# Moodle 4.3, PHP 8.1, MySQL
# Moodle 4.4, PHP 8.1, MariaDB
- php: '8.1'
moodle-branch: 'MOODLE_403_STABLE'
moodle-branch: 'MOODLE_404_STABLE'
database: mariadb
plugin-ci: ^4
# Moodle 4.4, PHP 8.2, MariaDB
- php: '8.2'
moodle-branch: 'MOODLE_404_STABLE'
database: mariadb
plugin-ci: ^4
# Moodle 4.4, PHP 8.2, PostgreSQL
- php: '8.3'
moodle-branch: 'MOODLE_404_STABLE'
database: pgsql
plugin-ci: ^4
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand Down Expand Up @@ -89,11 +94,6 @@ jobs:
if: ${{ !cancelled() }}
run: moodle-plugin-ci phplint

- name: PHP Copy/Paste Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ !cancelled() }}
run: moodle-plugin-ci phpcpd

- name: PHP Mess Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ !cancelled() }}
Expand Down Expand Up @@ -128,9 +128,19 @@ jobs:
run: moodle-plugin-ci phpunit --fail-on-warning

- name: Behat features
id: behat
if: ${{ !cancelled() }}
run: moodle-plugin-ci behat --profile chrome

- name: Upload Behat Faildump
if: ${{ failure() && steps.behat.outcome == 'failure' }}
uses: actions/upload-artifact@v4
with:
name: Behat Faildump (${{ join(matrix.*, ', ') }})
path: ${{ github.workspace }}/moodledata/behat_dump
retention-days: 7
if-no-files-found: ignore

- name: Mark cancelled jobs as failed.
if: ${{ cancelled() }}
run: exit 1
run: exit 1

0 comments on commit 6a67433

Please sign in to comment.