@@ -32,33 +32,11 @@ jobs:
3232 matrix : # I don't know why, but mariadb is much slower, so mostly use pgsql.
3333 # We use a mix of SBCL and GCL.
3434 include :
35- - php : ' 8.4'
36- moodle-branch : ' main'
37- database : ' pgsql'
38- maxima : ' GCL'
39- moodle-app : false
4035 - php : ' 8.4'
4136 moodle-branch : ' MOODLE_502_STABLE'
4237 database : ' pgsql'
4338 maxima : ' SBCL'
4439 moodle-app : true
45- - php : ' 8.2'
46- moodle-branch : ' MOODLE_500_STABLE'
47- database : ' pgsql'
48- maxima : ' SBCL'
49- moodle-app : false
50- # Edinburgh is planning to run the setup below for 2025-26.
51- - php : ' 8.2'
52- moodle-branch : ' MOODLE_405_STABLE'
53- database : ' mariadb'
54- maxima : ' GCL'
55- moodle-app : false
56- # Note, Moodle 4.2 will run on PHP 8.0, but we require PHP 8.1 or newer.
57- - php : ' 8.1'
58- moodle-branch : ' MOODLE_402_STABLE'
59- database : ' pgsql'
60- maxima : ' GCL'
61- moodle-app : true
6240
6341 steps :
6442 - name : Install Maxima (${{ matrix.maxima }})
@@ -220,54 +198,12 @@ jobs:
220198 MOODLE_BRANCH : ${{ matrix.moodle-branch }}
221199
222200 - name : PHP Lint
223- if : ${{ matrix.moodle-branch == 'main' || matrix.moodle-branch == 'MOODLE_502_STABLE'}}
224- run : moodle-plugin-ci phplint
225-
226- - name : PHP Copy/Paste Detector
227- continue-on-error : true # This step will show errors but will not fail.
228- if : ${{ matrix.moodle-branch == 'main' || matrix.moodle-branch == 'MOODLE_502_STABLE'}}
229- run : moodle-plugin-ci phpcpd
230-
231- - name : PHP Mess Detector
232- continue-on-error : true # This step will show errors but will not fail.
233- if : ${{ matrix.moodle-branch == 'main' || matrix.moodle-branch == 'MOODLE_502_STABLE'}}
234- run : moodle-plugin-ci phpmd
235-
236- - name : Moodle Code Checker
237- continue-on-error : true # Currently fails. We really ought to get this passing.
238- if : ${{ matrix.moodle-branch == 'main' || matrix.moodle-branch == 'MOODLE_502_STABLE'}}
239- run : moodle-plugin-ci codechecker --max-warnings 0
240-
241- - name : Moodle PHPDoc Checker
242- continue-on-error : true # Currently fails. We really ought to get this passing.
243- if : ${{ matrix.moodle-branch == 'main' || matrix.moodle-branch == 'MOODLE_502_STABLE'}}
244- run : moodle-plugin-ci phpdoc
245-
246- - name : Validating
247- if : ${{ matrix.moodle-branch == 'main' || matrix.moodle-branch == 'MOODLE_502_STABLE'}}
248- run : moodle-plugin-ci validate
249-
250- - name : Check upgrade savepoints
251- if : ${{ matrix.moodle-branch == 'main' || matrix.moodle-branch == 'MOODLE_502_STABLE'}}
252- run : moodle-plugin-ci savepoints
253-
254- - name : Mustache Lint
255- if : ${{ matrix.moodle-branch == 'main' || matrix.moodle-branch == 'MOODLE_502_STABLE'}}
256- run : moodle-plugin-ci mustache
257-
258- - name : Grunt
259- if : ${{ matrix.moodle-branch == 'main' || matrix.moodle-branch == 'MOODLE_502_STABLE'}}
260- run : moodle-plugin-ci grunt
261-
262- - name : PHPUnit tests
263- if : ${{ matrix.moodle-branch == 'main' || matrix.moodle-branch == 'MOODLE_405_STABLE'}}
264- # if: ${{ always() }}
265- run : moodle-plugin-ci phpunit
266-
267- - name : Behat features
268- if : ${{ always() }}
269- run : moodle-plugin-ci behat --profile chrome --auto-rerun 12
270- env :
271- # April 2026 - Remove after next Moodle App release
272- MOODLE_BEHAT_SELENIUM_IMAGE : selenium/standalone-chrome:145.0-20260222
201+ if : ${{matrix.moodle-branch == 'MOODLE_502_STABLE'}}
202+ run : |
203+ cd plugin/tests/jest
204+ npm ci
205+ npm test
206+
207+
208+
273209
0 commit comments