This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 157
73 lines (66 loc) · 2.2 KB
/
CI.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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:
php54:
name: PHP 5.4
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup PHP 5.4
uses: shivammathur/setup-php@v2
with:
php-version: "5.4"
- run: rm composer.json composer.lock
- run: composer require --dev php-parallel-lint/php-parallel-lint=1.3.2
- run: composer exec -- parallel-lint . --exclude external --exclude vendor
php56:
name: PHP 5.6
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup PHP 5.6
uses: shivammathur/setup-php@v2
with:
php-version: "5.6"
- run: rm composer.json composer.lock
- run: composer require --dev php-parallel-lint/php-parallel-lint=1.3.2
- run: composer exec -- parallel-lint . --exclude external --exclude vendor
php:
strategy:
fail-fast: false
matrix:
include:
# Has php7.1-8.0 pre-installed
# https://github.com/actions/virtual-environments/blob/ubuntu18/20210318.0/images/linux/Ubuntu1804-README.md#php
- os: ubuntu-18.04
php: "7.2"
- os: ubuntu-18.04
php: "7.3"
# Has php7.4-8.2 pre-installed
# https://github.com/actions/runner-images/blob/releases/ubuntu20/20221212/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"
# 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 }}
- run: composer install
- run: composer test
npm:
# Uses Node.js 14 by default
# https://github.com/actions/virtual-environments/blob/ubuntu20/20210318.0/images/linux/Ubuntu2004-README.md#nodejs
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm test