-
Notifications
You must be signed in to change notification settings - Fork 195
57 lines (47 loc) · 1.42 KB
/
php.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# While the GitHub mirror is read-only, we keep this CI config
# for convenience to forks and pull requests.
#
# To submit a patch you can:
#
# * Create a Wikimedia Developer account and submit it to Wikimedia Gerrit
# <https://www.mediawiki.org/wiki/Developer_account>,
#
# * Or, submit the output of `git diff origin/HEAD`
# via <https://gerrit-patch-uploader.toolforge.org/>.
#
# * Or, create a pull request via GitHub and wait for someone
# else to do one of the above.
#
name: Test
on:
- push
- pull_request
jobs:
php:
name: PHP ${{ matrix.php }}
strategy:
fail-fast: false
matrix:
include:
# Includes php7.4 - 8.2 and composer 2
# https://github.com/actions/runner-images/blob/ubuntu20/20221212.2/images/linux/Ubuntu2004-Readme.md#php
- php: '7.4'
os: ubuntu-20.04
- php: '8.0'
os: ubuntu-20.04
- php: '8.1'
os: ubuntu-20.04
- php: '8.2'
os: ubuntu-20.04
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use PHP ${{ matrix.php }}
run: sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Test
run: composer test