@@ -4,7 +4,7 @@ on: [ push, pull_request ]
44
55jobs :
66 tests :
7- name : PHP ${{ matrix.php }} Test on ${{ matrix.os }}
7+ name : PHP ${{ matrix.php }} / Symfony ${{ matrix.symfony_version }} / ${{ matrix.os }}
88
99 env :
1010 extensions : mbstring
@@ -15,10 +15,23 @@ jobs:
1515 strategy :
1616 matrix :
1717 os :
18- - ubuntu-latest
18+ - ' ubuntu-latest'
1919 php :
2020 - ' 7.4'
2121 - ' 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'
2235
2336 runs-on : ${{ matrix.os }}
2437
@@ -28,31 +41,31 @@ jobs:
2841 uses : actions/checkout@v2
2942
3043 -
31- name : Install PHP with extensions
44+ name : Setup PHP
3245 uses : shivammathur/setup-php@v2
3346 with :
3447 php-version : ${{ matrix.php }}
3548 extensions : ${{ env.extensions }}
3649 coverage : pcov
3750 ini-values : ${{ env.PHP_INI }}
38- tools : composer:v2
51+ tools : composer:v2, flex
3952
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
4356
4457 -
4558 name : Set coverage args
4659 if : matrix.php == '7.4'
4760 run : echo "PHPUNIT_COVERAGE=1" >> $GITHUB_ENV
4861
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-
5669
5770 -
5871 name : Check PHP Version
7285
7386 -
7487 name : Install dependencies with composer
88+ env :
89+ SYMFONY_REQUIRE : ${{ matrix.symfony_version }}
7590 run : composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
7691
7792 -
0 commit comments