66 branches : [ 'main' ]
77 schedule :
88 - cron : ' 0 8 * * 1'
9+ defaults :
10+ run :
11+ shell : bash -l {0}
912jobs :
1013 test :
1114 strategy :
@@ -18,10 +21,10 @@ jobs:
1821 node-versions : ['14.15.0']
1922
2023 exclude :
21- - {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.4'}
24+ - {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.4', node-versions: '14.15.0' }
2225 include :
23- - {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.1', operating-system: 'ubuntu-latest', database: 'mariadb'}
24- - {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.1', operating-system: 'ubuntu-latest', database: 'pgsql'}
26+ - {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.1', node-versions: '14.15.0', operating-system: 'ubuntu-latest', database: 'mariadb'}
27+ - {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.1', node-versions: '14.15.0', operating-system: 'ubuntu-latest', database: 'pgsql'}
2528 runs-on : ${{ matrix.operating-system }}
2629 services :
2730 postgres :
5255
5356 - name : Install node
5457 run : |
55- nvm install $NODE_VERSION
56- nvm use $NODE_VERSION
57- env :
58- NODE_VERSION : ${{ matrix.node-versions }}
58+ nvm install ${{ matrix.node-versions }}
59+ nvm use ${{ matrix.node-versions }}
5960
6061 - name : Setup PHP
6162 uses : shivammathur/setup-php@v2
@@ -76,12 +77,11 @@ jobs:
7677
7778 - name : Install Moodle
7879 run : |
79- nvm use $NODE_VERSION
80- moodle-plugin-ci install -vvv --plugin ./plugin --db-host=127.0.0.1 --node-version=$NODE_VERSION
80+ nvm use ${{ matrix.node-versions }}
81+ moodle-plugin-ci install -vvv --plugin ./plugin --db-host=127.0.0.1 --node-version=${{ matrix.node-versions }}
8182 env :
8283 DB : ${{ matrix.database }}
8384 MOODLE_BRANCH : ${{ matrix.moodle-version }}
84- NODE_VERSION : ${{ matrix.node-versions }}
8585
8686 - name : phplint
8787 run : moodle-plugin-ci phplint
0 commit comments