From 59a5291948340ac6bf62849dc330fe0fe2b7e63c Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 7 May 2021 23:04:05 +1200 Subject: [PATCH] This branch supports 3.8 -> 3.10 --- .github/workflows/ci.yml | 17 +++++++++++++---- version.php | 1 + 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea18f91..325ff61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,8 +27,17 @@ jobs: strategy: fail-fast: false matrix: - php-versions: ['7.3', '7.4'] - database: ['pgsql', 'mariadb'] + include: + - 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: - name: Check out repository code uses: actions/checkout@v2 @@ -45,7 +54,7 @@ jobs: - name: Setup PHP environment uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php with: - php-version: ${{ matrix.php-versions }} + php-version: ${{ matrix.php }} extensions: mbstring, pgsql, mysqli tools: phpunit @@ -63,7 +72,7 @@ jobs: env: DB: ${{ matrix.database }} # TODO: Omitted MOODLE_BRANCH results in regex failure, investigate. - MOODLE_BRANCH: 'master' + MOODLE_BRANCH: ${{ matrix.moodle-branch }} - name: Run phplint run: moodle-plugin-ci phplint diff --git a/version.php b/version.php index 02e6f12..d9cd1e8 100755 --- a/version.php +++ b/version.php @@ -29,3 +29,4 @@ $plugin->release = '3.9.1'; $plugin->maturity = MATURITY_STABLE; $plugin->cron = 0; $plugin->component = 'mod_attendance'; +$plugin->supported = [38, 310];