Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,25 @@ on:
branches: [ 'main' ]
schedule:
- cron: '0 8 * * 1'
defaults:
run:
shell: bash -l {0}
jobs:
test:
strategy:
fail-fast: false
fail-fast: true
matrix:
database: ['pgsql', 'mariadb']
moodle-version: ['MOODLE_37_STABLE', 'MOODLE_38_STABLE', 'MOODLE_39_STABLE', 'MOODLE_310_STABLE', 'master']
operating-system: [ubuntu-latest]
php-versions: ['7.4']
node-versions: ['14.15.0']

exclude:
- {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.4'}
- {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.4', node-versions: '14.15.0'}
include:
- {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.1', operating-system: 'ubuntu-latest', database: 'mariadb'}
- {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.1', operating-system: 'ubuntu-latest', database: 'pgsql'}
- {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.1', node-versions: '14.15.0', operating-system: 'ubuntu-latest', database: 'mariadb'}
- {moodle-version: 'MOODLE_37_STABLE', php-versions: '7.1', node-versions: '14.15.0', operating-system: 'ubuntu-latest', database: 'pgsql'}
runs-on: ${{ matrix.operating-system }}
services:
postgres:
Expand Down Expand Up @@ -49,10 +54,9 @@ jobs:
path: plugin

- name: Install node
uses: actions/setup-node@v1
with:
# TODO: Check if we can support .nvmrc
node-version: '14.15.0'
run: |
nvm install ${{ matrix.node-versions }}
nvm use ${{ matrix.node-versions }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -72,7 +76,9 @@ jobs:
sudo locale-gen en_AU.UTF-8

- name: Install Moodle
run: moodle-plugin-ci install -vvv --plugin ./plugin --db-host=127.0.0.1
run: |
nvm use ${{ matrix.node-versions }}
moodle-plugin-ci install -vvv --plugin ./plugin --db-host=127.0.0.1 --node-version=${{ matrix.node-versions }}
env:
DB: ${{ matrix.database }}
MOODLE_BRANCH: ${{ matrix.moodle-version }}
Expand Down