-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 967 Bytes
/
CI.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
name: CI
on:
- push
- pull_request
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
php:
strategy:
matrix:
include:
# Has php7.4-8.2 and composer 2.4 pre-installed
# https://github.com/actions/runner-images/blob/6b24925/images/linux/Ubuntu2004-Readme.md#php
- os: ubuntu-20.04
php: "7.4"
- os: ubuntu-20.04
php: "8.0"
- os: ubuntu-20.04
php: "8.1"
- os: ubuntu-20.04
php: "8.2"
# Use "PHP 0.0" as job name instead of "php (ubuntu-, 0.0)"
name: PHP ${{ matrix.php }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use PHP ${{ matrix.php }}
run: sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
- name: composer install
run: composer install
- name: composer test
run: composer test