@@ -2,42 +2,23 @@ name: Tests
22
33on :
44 push :
5+ branches : [ main ]
56 pull_request :
67
78jobs :
89 tests :
9- name : PHP ${{ matrix.php }}; Symfony ${{ matrix.symfony }}
10- runs-on : ubuntu-20.04
11-
10+ name : Test PHP ${{ matrix.php-version }} ${{ matrix.name }}
11+ runs-on : ubuntu-latest
1212 strategy :
13+ fail-fast : false
1314 matrix :
14- php : ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
15- symfony : ['3', '4', '5', '6']
16- exclude :
17- - php : ' 5.6'
18- symfony : ' 4'
19- - php : ' 5.6'
20- symfony : ' 5'
21- - php : ' 5.6'
22- symfony : ' 6'
23- - php : ' 7.0'
24- symfony : ' 4'
25- - php : ' 7.0'
26- symfony : ' 5'
27- - php : ' 7.0'
28- symfony : ' 6'
29- - php : ' 7.1'
30- symfony : ' 5'
31- - php : ' 7.1'
32- symfony : ' 6'
33- - php : ' 7.2'
34- symfony : ' 6'
35- - php : ' 7.3'
36- symfony : ' 6'
37- - php : ' 7.4'
38- symfony : ' 6'
39- - php : ' 8.1'
40- symfony : ' 3'
15+ php-version : ['8.1', '8.2']
16+ composer-flags : ['']
17+ name : ['']
18+ include :
19+ - php : 8.0
20+ composer-flags : ' --prefer-lowest'
21+ name : ' (prefer lowest dependencies)'
4122
4223 steps :
4324 - name : Checkout Code
@@ -47,50 +28,13 @@ jobs:
4728 uses : shivammathur/setup-php@v2
4829 with :
4930 php-version : ${{ matrix.php }}
50- tools : composer:v2
51- coverage : none
5231
5332 - name : Setup Problem Matchers
5433 run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
5534
56- - name : Select Symfony 3
57- uses : nick-invision/retry@v1
58- with :
59- timeout_minutes : 5
60- max_attempts : 5
61- command : composer require "symfony/process:^3.4" --no-update --no-interaction
62- if : " matrix.symfony == '3'"
63-
64- - name : Select Symfony 4
65- uses : nick-invision/retry@v1
66- with :
67- timeout_minutes : 5
68- max_attempts : 5
69- command : composer require "symfony/process:^4.4" --no-update --no-interaction
70- if : " matrix.symfony == '4'"
71-
72- - name : Select Symfony 5
73- uses : nick-invision/retry@v1
74- with :
75- timeout_minutes : 5
76- max_attempts : 5
77- command : composer require "symfony/process:^5.3" --no-update --no-interaction
78- if : " matrix.symfony == '5'"
79-
80- - name : Select Symfony 6
81- uses : nick-invision/retry@v1
82- with :
83- timeout_minutes : 5
84- max_attempts : 5
85- command : composer require "symfony/process:^6.0" --no-update --no-interaction
86- if : " matrix.symfony == '6'"
87-
88- - name : Install PHP Dependencies
89- uses : nick-invision/retry@v1
90- with :
91- timeout_minutes : 5
92- max_attempts : 5
93- command : composer update --no-interaction --no-progress
35+ - name : Install Composer dependencies
36+ run : |
37+ composer update --prefer-dist --no-interaction ${{ matrix.composer-flags }}
9438
9539 - name : Execute PHPUnit
9640 run : vendor/bin/phpunit
0 commit comments