Skip to content

Commit

Permalink
ops: run tests for all supported moodle/php versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Pol Torrent i Soler committed Apr 23, 2024
1 parent 31d021e commit f4bcb23
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,50 @@ 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

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
Expand Down Expand Up @@ -103,4 +132,4 @@ jobs:

- name: Behat features
if: ${{ always() }}
run: moodle-plugin-ci behat --profile chrome
run: moodle-plugin-ci behat --profile chrome

0 comments on commit f4bcb23

Please sign in to comment.