-
Notifications
You must be signed in to change notification settings - Fork 379
79 lines (66 loc) · 2.17 KB
/
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
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: LiipImagineBundle CI
on:
pull_request:
push:
jobs:
phpunit:
name: "PHPUnit (PHP ${{ matrix.php }} + ${{ matrix.dependencies }} dependencies + Symfony ${{ matrix.symfony }})"
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php: ['7.1', '7.2', '7.3', '7.4']
dependencies: [highest]
symfony: ['*']
include:
# Minimum supported dependencies with the oldest supported PHP version
- php: '7.1'
dependencies: lowest
symfony: '*'
# Minimum supported dependencies with the latest supported PHP version
- php: '7.4'
dependencies: lowest
symfony: '*'
# Test each supported Symfony version with lowest supported PHP version
- php: '7.1'
dependencies: highest
symfony: '3.4.*'
- php: '7.1'
dependencies: highest
symfony: '4.4.*'
- php: '7.2'
dependencies: highest
symfony: '5.1.*'
- php: '7.2'
dependencies: highest
symfony: '5.2.*'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: gd, imagick
ini-values: disable_functions=imagewebp
- name: Require Symfony version
if: matrix.symfony != '*'
run: |
composer global require --no-interaction --no-progress symfony/flex:^1.11
composer config extra.symfony.require ${{ matrix.symfony }}
- name: Update project dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: ${{ matrix.dependencies }}
- name: Cache PHPUnit
uses: actions/cache@v2
with:
path: vendor/bin/.phpunit
key: ${{ runner.os }}-phpunit-${{ matrix.php }}
- name: Install PHPUnit
run: vendor/bin/simple-phpunit install
- name: Run PHPUnit tests
env:
SYMFONY_DEPRECATIONS_HELPER: max[self]=0
run: vendor/bin/simple-phpunit -v