@@ -31,19 +31,25 @@ jobs:
31
31
fail-fast : false
32
32
matrix :
33
33
include :
34
- - php : ' 8.1 '
35
- moodle-branch : ' master '
34
+ - php : ' 8.2 '
35
+ moodle-branch : ' main '
36
36
database : ' mariadb'
37
- - php : ' 8.1 '
38
- moodle-branch : ' master '
37
+ - php : ' 8.2 '
38
+ moodle-branch : ' main '
39
39
database : ' pgsql'
40
+ - php : ' 8.1'
41
+ moodle-branch : ' MOODLE_403_STABLE'
42
+ database : ' mariadb'
40
43
- php : ' 8.0'
41
44
moodle-branch : ' MOODLE_402_STABLE'
45
+ database : ' pgsql'
46
+ - php : ' 8.0'
47
+ moodle-branch : ' MOODLE_401_STABLE'
42
48
database : ' mariadb'
43
49
44
50
steps :
45
51
- name : Check out repository code
46
- uses : actions/checkout@v3
52
+ uses : actions/checkout@v4
47
53
with :
48
54
path : plugin
49
55
@@ -66,55 +72,54 @@ jobs:
66
72
echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV
67
73
68
74
- name : Install moodle-plugin-ci
69
- run : |
70
- moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
75
+ run : moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
71
76
env :
72
77
DB : ${{ matrix.database }}
73
78
MOODLE_BRANCH : ${{ matrix.moodle-branch }}
74
- MUSTACHE_IGNORE_NAMES : ' content.mustache'
79
+ # Uncomment this to run Behat tests using the Moodle App.
80
+ # MOODLE_APP: 'true'
75
81
76
82
- name : PHP Lint
77
- if : ${{ always () }}
83
+ if : ${{ !cancelled () }}
78
84
run : moodle-plugin-ci phplint
79
85
80
- - name : PHP Copy/Paste Detector
81
- continue-on-error : true # This step will show errors but will not fail
82
- if : ${{ always() }}
83
- run : moodle-plugin-ci phpcpd
84
-
85
86
- name : PHP Mess Detector
86
87
continue-on-error : true # This step will show errors but will not fail
87
- if : ${{ always () }}
88
+ if : ${{ !cancelled () }}
88
89
run : moodle-plugin-ci phpmd
89
90
90
91
- name : Moodle Code Checker
91
- if : ${{ always () }}
92
+ if : ${{ !cancelled () }}
92
93
run : moodle-plugin-ci phpcs --max-warnings 0
93
94
94
95
- name : Moodle PHPDoc Checker
95
- if : ${{ always () }}
96
+ if : ${{ !cancelled () }}
96
97
run : moodle-plugin-ci phpdoc --max-warnings 0
97
98
98
99
- name : Validating
99
- if : ${{ always () }}
100
+ if : ${{ !cancelled () }}
100
101
run : moodle-plugin-ci validate
101
102
102
103
- name : Check upgrade savepoints
103
- if : ${{ always () }}
104
+ if : ${{ !cancelled () }}
104
105
run : moodle-plugin-ci savepoints
105
106
106
107
- name : Mustache Lint
107
- if : ${{ always() }}
108
+ if : ${{ false }}
108
109
run : moodle-plugin-ci mustache
109
110
110
111
- name : Grunt
111
- if : ${{ always () }}
112
+ if : ${{ !cancelled () }}
112
113
run : moodle-plugin-ci grunt --max-lint-warnings 0
113
114
114
115
- name : PHPUnit tests
115
- if : ${{ always () }}
116
+ if : ${{ !cancelled () }}
116
117
run : moodle-plugin-ci phpunit --fail-on-warning
117
118
118
119
- name : Behat features
119
- if : ${{ always () }}
120
+ if : ${{ !cancelled () }}
120
121
run : moodle-plugin-ci behat --profile chrome
122
+
123
+ - name : Mark cancelled jobs as failed.
124
+ if : ${{ cancelled() }}
125
+ run : exit 1
0 commit comments