Skip to content

Commit

Permalink
Prepare for Moodle 4.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Apr 21, 2024
1 parent f66daec commit 18e9789
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 7 deletions.
63 changes: 57 additions & 6 deletions .github/workflows/moodle-plugin-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,104 +30,160 @@ jobs:
fail-fast: false
matrix:
include:
- php: 8.3
moodle-branch: MOODLE_404_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.3
moodle-branch: MOODLE_404_STABLE
database: mariadb
plugin-ci: ^4
- php: 8.2
moodle-branch: MOODLE_404_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.2
moodle-branch: MOODLE_404_STABLE
database: mariadb
plugin-ci: ^4
- php: 8.1
moodle-branch: MOODLE_404_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.1
moodle-branch: MOODLE_404_STABLE
database: mariadb
plugin-ci: ^4
- php: 8.2
moodle-branch: MOODLE_403_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.2
moodle-branch: MOODLE_403_STABLE
database: mariadb
plugin-ci: ^4
- php: 8.1
moodle-branch: MOODLE_403_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.1
moodle-branch: MOODLE_403_STABLE
database: mariadb
plugin-ci: ^4
- php: 8.0
moodle-branch: MOODLE_403_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.0
moodle-branch: MOODLE_403_STABLE
database: mariadb
plugin-ci: ^4
- php: 8.2
moodle-branch: MOODLE_402_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.2
moodle-branch: MOODLE_402_STABLE
database: mariadb
plugin-ci: ^4
- php: 8.1
moodle-branch: MOODLE_402_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.1
moodle-branch: MOODLE_402_STABLE
database: mariadb
plugin-ci: ^4
- php: 8.0
moodle-branch: MOODLE_402_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.0
moodle-branch: MOODLE_402_STABLE
database: mariadb
plugin-ci: ^4
- php: 8.1
moodle-branch: MOODLE_401_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.1
moodle-branch: MOODLE_401_STABLE
database: mariadb
plugin-ci: ^4
- php: 8.0
moodle-branch: MOODLE_401_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.0
moodle-branch: MOODLE_401_STABLE
database: mariadb
plugin-ci: ^4
- php: 7.4
moodle-branch: MOODLE_401_STABLE
database: pgsql
plugin-ci: ^4
- php: 7.4
moodle-branch: MOODLE_401_STABLE
database: mariadb
plugin-ci: ^4
- php: 8.0
moodle-branch: MOODLE_400_STABLE
database: pgsql
plugin-ci: ^4
- php: 8.0
moodle-branch: MOODLE_400_STABLE
database: mariadb
plugin-ci: ^4
- php: 7.4
moodle-branch: MOODLE_400_STABLE
database: pgsql
plugin-ci: ^4
- php: 7.4
moodle-branch: MOODLE_400_STABLE
database: mariadb
plugin-ci: ^4
- php: 7.4
moodle-branch: MOODLE_311_STABLE
database: pgsql
plugin-ci: ^4
- php: 7.4
moodle-branch: MOODLE_311_STABLE
database: mariadb
plugin-ci: ^4
- php: 7.4
moodle-branch: MOODLE_39_STABLE
database: pgsql
plugin-ci: ^4
- php: 7.4
moodle-branch: MOODLE_39_STABLE
database: mariadb
plugin-ci: ^4

- php: 7.3
moodle-branch: MOODLE_311_STABLE
database: pgsql
plugin-ci: ^3
- php: 7.3
moodle-branch: MOODLE_311_STABLE
database: mariadb
plugin-ci: ^3
- php: 7.3
moodle-branch: MOODLE_39_STABLE
database: pgsql
plugin-ci: ^3
- php: 7.3
moodle-branch: MOODLE_39_STABLE
database: mariadb
plugin-ci: ^3

- php: 7.2
moodle-branch: MOODLE_39_STABLE
database: pgsql
plugin-ci: ^3
- php: 7.2
moodle-branch: MOODLE_39_STABLE
database: mariadb
plugin-ci: ^3

steps:
- name: Check out repository code
Expand All @@ -145,7 +201,7 @@ jobs:

- name: Initialise moodle-plugin-ci
run: |
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ${{ matrix.plugin-ci }}
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
sudo locale-gen en_AU.UTF-8
Expand All @@ -163,11 +219,6 @@ jobs:
if: ${{ always() }}
run: moodle-plugin-ci phplint

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

- name: PHP Mess Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
*
* @return string
*/
public static function get_reason() : string {
public static function get_reason(): string {
return 'privacy:metadata';
}
}

0 comments on commit 18e9789

Please sign in to comment.