diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 224e0787..3e78ff7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,8 +10,8 @@ jobs: postgres: image: postgres:13 env: - POSTGRES_USER: 'postgres' - POSTGRES_HOST_AUTH_METHOD: 'trust' + POSTGRES_USER: "postgres" + POSTGRES_HOST_AUTH_METHOD: "trust" ports: - 5432:5432 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3 @@ -19,12 +19,41 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.1'] + php: ["7.4", "8.0", 8.1', "8.2", "8.3"] moodle-branch: [ - 'MOODLE_403_STABLE' + "MOODLE_401_STABLE", + "MOODLE_402_STABLE", + "MOODLE_403_STABLE", + "MOODLE_404_STABLE", + "main", ] database: [pgsql] + exclude: + # Exclude Moodle+PHP incompatible versions + # See: https://moodledev.io/general/development/policies/php + - moodle-branch: "MOODLE_401_STABLE" + php: "8.2" + - moodle-branch: "MOODLE_401_STABLE" + php: "8.3" + - moodle-branch: "MOODLE_402_STABLE" + php: "7.4" + - moodle-branch: "MOODLE_401_STABLE" + php: "8.3" + - moodle-branch: "MOODLE_403_STABLE" + php: "7.4" + - moodle-branch: "MOODLE_403_STABLE" + php: "8.3" + - moodle-branch: "MOODLE_404_STABLE" + php: "7.4" + - moodle-branch: "MOODLE_404_STABLE" + php: "8.0" + - moodle-branch: "main" + include: + # Only test master against latest PHP until we know which + # versions are supported in the next release + - moodle-branch: "main" + php: "8.3" steps: - name: Get branch name @@ -103,4 +132,4 @@ jobs: - name: Behat features if: ${{ always() }} - run: moodle-plugin-ci behat --profile chrome \ No newline at end of file + run: moodle-plugin-ci behat --profile chrome