Skip to content

Commit 81200e6

Browse files
committed
Bump moodle-local_moodlecheck to v1.1.4
Also, update moodle-cs base version (though that one is automatic on composer install/project). And fix a few fixtures to pass with new phpcs and node 18 stuff. Note this causes tests for 3.x branches to fail with grunt, because the generated map files are now different from the 4.x ones. Hence, we are preventing that with conditional regular expression for all 3.x branches.
1 parent cd699c0 commit 81200e6

File tree

7 files changed

+40
-36
lines changed

7 files changed

+40
-36
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
moodle-plugin-ci validate
107107
moodle-plugin-ci savepoints
108108
moodle-plugin-ci mustache
109-
moodle-plugin-ci grunt || [ "$MOODLE_BRANCH" == 'MOODLE_38_STABLE' ]
109+
moodle-plugin-ci grunt || [[ "$MOODLE_BRANCH" =~ MOODLE_3[0-9]+_STABLE ]] # Fixtures only compatible with Moodle >= 4.0
110110
moodle-plugin-ci phpdoc
111111
moodle-plugin-ci phpunit --verbose --coverage-text --fail-on-warning
112112
moodle-plugin-ci behat --profile default

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@
5252
"type": "package",
5353
"package": {
5454
"name": "moodlehq/moodle-local_moodlecheck",
55-
"version": "1.1.3",
55+
"version": "1.1.4",
5656
"source": {
5757
"url": "https://github.com/moodlehq/moodle-local_moodlecheck.git",
5858
"type": "git",
59-
"reference": "v1.1.3"
59+
"reference": "v1.1.4"
6060
}
6161
}
6262
}
6363
],
6464
"require": {
6565
"php": ">=7.0.8",
66-
"moodlehq/moodle-cs": "^3.2.3",
66+
"moodlehq/moodle-cs": "^3.3.2",
6767
"moodlehq/moodle-local_ci": "^1.0.17",
68-
"moodlehq/moodle-local_moodlecheck": "^1.1.3",
68+
"moodlehq/moodle-local_moodlecheck": "^1.1.4",
6969
"sebastian/phpcpd": "^3.0",
7070
"sebastian/version": "^2.0.1",
7171
"phpmd/phpmd": "^2.2",

composer.lock

Lines changed: 24 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
99
The format of this change log follows the advice given at [Keep a CHANGELOG](http://keepachangelog.com).
1010

1111
## [Unreleased]
12+
### Changed
13+
- Updated project dependencies to current [moodle-local_moodlecheck](https://github.com/moodlehq/moodle-local_moodlecheck) version.
1214

1315
## [3.4.6] - 2023-02-08
1416
### Changed

tests/Fixture/moodle-local_ci/amd/build/keys.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Fixture/moodle-local_ci/db/access.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626

2727
$capabilities = [
2828
'local/travis:view' => [
29-
'captype' => 'read',
29+
'captype' => 'read',
3030
'contextlevel' => CONTEXT_SYSTEM,
31-
'archetypes' => [
32-
'teacher' => CAP_ALLOW,
31+
'archetypes' => [
32+
'teacher' => CAP_ALLOW,
3333
'editingteacher' => CAP_ALLOW,
34-
'manager' => CAP_ALLOW,
34+
'manager' => CAP_ALLOW,
3535
],
3636
],
3737
];

tests/Fixture/moodle-local_ci/version.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
defined('MOODLE_INTERNAL') || die();
2626

2727
/** @var object $plugin */
28-
$plugin->version = 2015071000;
29-
$plugin->requires = 2014051200; // Moodle 2.7.
30-
$plugin->component = 'local_ci';
28+
$plugin->version = 2015071000;
29+
$plugin->requires = 2014051200; // Moodle 2.7.
30+
$plugin->component = 'local_ci';
3131
$plugin->dependencies = ['mod_forum' => ANY_VERSION];
32-
$plugin->maturity = MATURITY_STABLE;
32+
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)