File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [ master ]
7+
8+ jobs :
9+ run :
10+ runs-on : ubuntu-18.04
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ php :
15+ - ' 5.5'
16+ - ' 5.6'
17+ - ' 7.1'
18+ - ' 7.2'
19+ - ' 7.3'
20+ - ' 7.4'
21+ symfony-versions : [false]
22+ include :
23+ - description : ' Symfony 2.*'
24+ php : ' 5.6'
25+ symfony-versions : ' ^2.8'
26+ - description : ' Symfony 3.*'
27+ php : ' 7.4'
28+ symfony-versions : ' ^3.0'
29+ - description : ' Symfony 4.*'
30+ php : ' 7.4'
31+ symfony-versions : ' ^4.0'
32+ name : PHP ${{ matrix.php }} ${{ matrix.description }}
33+ steps :
34+ - name : Checkout
35+ uses : actions/checkout@v2
36+
37+ - uses : actions/cache@v2
38+ with :
39+ path : ~/.composer/cache/files
40+ key : ${{ matrix.php }}-${{ matrix.symfony-versions }}
41+
42+ - name : Setup PHP
43+ uses : shivammathur/setup-php@v2
44+ with :
45+ php-version : ${{ matrix.php }}
46+
47+ - name : Install dependencies
48+ run : composer require "symfony/symfony:${{ matrix.symfony-versions }}" --no-update
49+ if : matrix.symfony-versions
50+
51+ - name : Install dependencies
52+ run : composer install
53+
54+ - name : Run PHPUnit tests
55+ run : ./vendor/bin/phpunit --coverage-text
You can’t perform that action at this time.
0 commit comments