|
@ -27,8 +27,17 @@ jobs: |
|
|
strategy: |
|
|
strategy: |
|
|
fail-fast: false |
|
|
fail-fast: false |
|
|
matrix: |
|
|
matrix: |
|
|
php-versions: ['7.3', '7.4'] |
|
|
include: |
|
|
database: ['pgsql', 'mariadb'] |
|
|
- php: '7.1' |
|
|
|
|
|
moodle-branch: 'MOODLE_38_STABLE' |
|
|
|
|
|
database: 'pgsql' |
|
|
|
|
|
- php: '7.2' |
|
|
|
|
|
moodle-branch: 'MOODLE_39_STABLE' |
|
|
|
|
|
database: 'mariadb' |
|
|
|
|
|
- php: '7.4' |
|
|
|
|
|
moodle-branch: 'MOODLE_310_STABLE' |
|
|
|
|
|
database: 'pgsql' |
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- name: Check out repository code |
|
|
- name: Check out repository code |
|
|
uses: actions/checkout@v2 |
|
|
uses: actions/checkout@v2 |
|
@ -45,7 +54,7 @@ jobs: |
|
|
- name: Setup PHP environment |
|
|
- name: Setup PHP environment |
|
|
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php |
|
|
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php |
|
|
with: |
|
|
with: |
|
|
php-version: ${{ matrix.php-versions }} |
|
|
php-version: ${{ matrix.php }} |
|
|
extensions: mbstring, pgsql, mysqli |
|
|
extensions: mbstring, pgsql, mysqli |
|
|
tools: phpunit |
|
|
tools: phpunit |
|
|
|
|
|
|
|
@ -63,7 +72,7 @@ jobs: |
|
|
env: |
|
|
env: |
|
|
DB: ${{ matrix.database }} |
|
|
DB: ${{ matrix.database }} |
|
|
# TODO: Omitted MOODLE_BRANCH results in regex failure, investigate. |
|
|
# TODO: Omitted MOODLE_BRANCH results in regex failure, investigate. |
|
|
MOODLE_BRANCH: 'master' |
|
|
MOODLE_BRANCH: ${{ matrix.moodle-branch }} |
|
|
|
|
|
|
|
|
- name: Run phplint |
|
|
- name: Run phplint |
|
|
run: moodle-plugin-ci phplint |
|
|
run: moodle-plugin-ci phplint |
|
|