Skip to content

Commit

Permalink
ops: update ci workflow to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Pol Torrent i Soler committed Apr 19, 2024
1 parent c79f811 commit 5eab8db
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest

services:
postgres:
image: postgres:12
image: postgres:13
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
Expand All @@ -19,33 +19,20 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.3', '7.4', '8.0']
php: ['8.1']
moodle-branch:
[
'MOODLE_39_STABLE',
'MOODLE_310_STABLE',
'MOODLE_311_STABLE',
'MOODLE_400_STABLE',
'MOODLE_401_STABLE'
'MOODLE_403_STABLE'
]
database: [pgsql]
exclude:
# Exclude Moodle+PHP incompatible versions
# See: https://docs.moodle.org/dev/Moodle_and_PHP
- moodle-branch: 'MOODLE_401_STABLE'
php: '7.3'
- moodle-branch: 'MOODLE_39_STABLE'
php: '8.0'
- moodle-branch: 'MOODLE_310_STABLE'
php: '8.0'

steps:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v5.2

- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: plugin

Expand Down

0 comments on commit 5eab8db

Please sign in to comment.