forked from cebe/php-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (69 loc) · 1.95 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
phpunit:
name: Tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
- "8.0"
dependencies:
- "lowest"
- "highest"
symfony-yaml: ['^3.4', '^4', '^5', '^6']
include:
- os: "windows-latest"
php: "8.0"
dependencies: "highest"
symfony-yaml: '5.4.2'
- os: "macos-latest"
php: "8.0"
dependencies: "highest"
symfony-yaml: '^5'
exclude:
# symfony/yaml v5 does not run on PHP 7.1
- php: '7.1'
symfony-yaml: '^5'
# symfony/yaml v6 does not run on PHP 7.*
- php: '7.1'
symfony-yaml: '^6'
- php: '7.2'
symfony-yaml: '^6'
- php: '7.3'
symfony-yaml: '^6'
- php: '7.4'
symfony-yaml: '^6'
# symfony/yaml v3.4 is not compatible with PHP 8.0 but has no upper-bound, so it installs on it
- php: '8.0'
symfony-yaml: '^3.4'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
tools: composer:v2
- name: Require specific symfony/yaml version
run: "composer require symfony/yaml:'${{ matrix.symfony-yaml }}' --prefer-dist --no-interaction --ansi --no-install"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"
- name: Validate test data
run: make lint
- name: PHPUnit tests
run: make test
- name: Code coverage
run: make coverage