@@ -4,7 +4,7 @@ on: [ push, pull_request ]
4
4
5
5
jobs :
6
6
tests :
7
- name : PHP ${{ matrix.php }} Test on ${{ matrix.os }}
7
+ name : PHP ${{ matrix.php }} / Symfony ${{ matrix.symfony_version }} / ${{ matrix.os }}
8
8
9
9
env :
10
10
extensions : mbstring
@@ -15,10 +15,23 @@ jobs:
15
15
strategy :
16
16
matrix :
17
17
os :
18
- - ubuntu-latest
18
+ - ' ubuntu-latest'
19
19
php :
20
20
- ' 7.4'
21
21
- ' 8.0'
22
+ - ' 8.1'
23
+ symfony_version :
24
+ - ' 5.1.*'
25
+ - ' 5.2.*'
26
+ - ' 5.3.*'
27
+ - ' 5.4.*'
28
+ exclude :
29
+ - os : ' ubuntu-latest'
30
+ symfony_version : ' 5.1.*'
31
+ php : ' 8.1'
32
+ - os : ' ubuntu-latest'
33
+ symfony_version : ' 5.2.*'
34
+ php : ' 8.1'
22
35
23
36
runs-on : ${{ matrix.os }}
24
37
@@ -28,31 +41,31 @@ jobs:
28
41
uses : actions/checkout@v2
29
42
30
43
-
31
- name : Install PHP with extensions
44
+ name : Setup PHP
32
45
uses : shivammathur/setup-php@v2
33
46
with :
34
47
php-version : ${{ matrix.php }}
35
48
extensions : ${{ env.extensions }}
36
49
coverage : pcov
37
50
ini-values : ${{ env.PHP_INI }}
38
- tools : composer:v2
51
+ tools : composer:v2, flex
39
52
40
- -
41
- name : Determine composer cache directory
42
- run : echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
53
+ # -
54
+ # name: Determine composer cache directory
55
+ # run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
43
56
44
57
-
45
58
name : Set coverage args
46
59
if : matrix.php == '7.4'
47
60
run : echo "PHPUNIT_COVERAGE=1" >> $GITHUB_ENV
48
61
49
- -
50
- name : Cache composer dependencies
51
- uses : actions/cache@v2
52
- with :
53
- path : ${{ env.COMPOSER_CACHE_DIR }}
54
- key : php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
55
- restore-keys : php${{ matrix.php }}-composer-
62
+ # -
63
+ # name: Cache composer dependencies
64
+ # uses: actions/cache@v2
65
+ # with:
66
+ # path: ${{ env.COMPOSER_CACHE_DIR }}
67
+ # key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
68
+ # restore-keys: php${{ matrix.php }}-composer-
56
69
57
70
-
58
71
name : Check PHP Version
72
85
73
86
-
74
87
name : Install dependencies with composer
88
+ env :
89
+ SYMFONY_REQUIRE : ${{ matrix.symfony_version }}
75
90
run : composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
76
91
77
92
-
0 commit comments