File tree Expand file tree Collapse file tree 3 files changed +78
-55
lines changed Expand file tree Collapse file tree 3 files changed +78
-55
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ tests :
9+ name : PHPUnit PHP ${{ matrix.php }} ${{ matrix.dependency }} (Symfony ${{ matrix.symfony }})
10+ runs-on : ubuntu-latest
11+ strategy :
12+ matrix :
13+ php :
14+ - ' 7.2'
15+ - ' 7.3'
16+ - ' 7.4'
17+ - ' 8.0'
18+ dependency :
19+ - ' '
20+ symfony :
21+ - ' 4.4.*'
22+ - ' 5.3.*'
23+ include :
24+ - php : ' 7.2'
25+ symfony : ' 4.4.*'
26+ dependency : ' lowest'
27+ - php : ' 8.0'
28+ symfony : ' 6.0.*'
29+ fail-fast : false
30+ steps :
31+ - name : Checkout
32+ uses : actions/checkout@v2
33+
34+ - name : Setup PHP
35+ uses : shivammathur/setup-php@v2
36+ with :
37+ php-version : ${{ matrix.php }}
38+ extensions : pcov
39+ tools : flex
40+
41+ - name : Prefer unstable Composer dependencies for Symfony 6.0
42+ if : matrix.symfony == '6.0.*'
43+ run : |
44+ composer config prefer-stable false
45+ composer config minimum-stability dev
46+
47+ - name : Get Composer Cache Directory
48+ id : composer-cache
49+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
50+
51+ - name : Cache dependencies
52+ uses : actions/cache@v2
53+ with :
54+ path : ${{ steps.composer-cache.outputs.dir }}
55+ key : ${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
56+ restore-keys : ${{ matrix.php }}-composer-
57+
58+ - name : Update project dependencies
59+ if : matrix.dependency == ''
60+ run : composer update --no-progress --ansi --prefer-stable
61+ env :
62+ SYMFONY_REQUIRE : ${{ matrix.symfony }}
63+
64+ - name : Update project dependencies lowest
65+ if : matrix.dependency == 'lowest'
66+ run : composer update --no-progress --ansi --prefer-stable --prefer-lowest
67+ env :
68+ SYMFONY_REQUIRE : ${{ matrix.symfony }}
69+
70+ - name : Validate composer
71+ run : composer validate --strict --no-check-lock
72+
73+ - name : Run tests
74+ run : vendor/bin/phpunit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1515 "require" : {
1616 "php" : " ^7.2 || ^8.0" ,
1717 "matthiasnoback/symfony-config-test" : " ^4.0.1" ,
18- "symfony/dependency-injection" : " ^3 .4 || ^4.4 || ^5 .0" ,
19- "symfony/config" : " ^3 .4 || ^4.4 || ^5 .0" ,
20- "symfony/yaml" : " ^3 .4 || ^4.4 || ^5 .0"
18+ "symfony/dependency-injection" : " ^4 .4 || ^5.3 || ^6 .0" ,
19+ "symfony/config" : " ^4 .4 || ^5.3 || ^6 .0" ,
20+ "symfony/yaml" : " ^4 .4 || ^5.3 || ^6 .0"
2121 },
2222 "require-dev" : {
23- "phpunit/phpunit" : " ^8.0"
23+ "phpunit/phpunit" : " ^8.0 || ^9.0 "
2424 },
2525 "conflict" : {
2626 "phpunit/phpunit" : " <8.0"
You can’t perform that action at this time.
0 commit comments