File tree Expand file tree Collapse file tree 5 files changed +108
-62
lines changed Expand file tree Collapse file tree 5 files changed +108
-62
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : " Tests"
2+
3+ on :
4+ pull_request : null
5+ push :
6+ branches :
7+ - " 3.x"
8+
9+ jobs :
10+ phpunit :
11+ name : " PHPUnit"
12+ runs-on : ubuntu-latest
13+
14+ strategy :
15+ matrix :
16+ include :
17+ - php-version : 7.4
18+ symfony-version : 4.4.*
19+ - php-version : 8.0
20+ symfony-version : 4.4.*
21+ - php-version : 7.4
22+ symfony-version : 5.2.*
23+ - php-version : 8.0
24+ symfony-version : 5.2.*
25+
26+ steps :
27+ - name : " Checkout"
28+ uses : actions/checkout@v2
29+
30+ - name : " Setup PHP"
31+ uses : shivammathur/setup-php@v2
32+ with :
33+ coverage : none
34+ php-version : ${{ matrix.php-version }}
35+
36+ - name : " Install dependencies with composer"
37+ run : |
38+ composer require --no-update --dev symfony/symfony:${{ matrix.symfony-version }}
39+ composer update --no-interaction --no-progress --no-suggest
40+
41+ - name : " Run tests with phpunit/phpunit"
42+ run : vendor/bin/phpunit
43+
44+ codecov :
45+ name : " Code coverage"
46+ runs-on : ubuntu-latest
47+
48+ strategy :
49+ matrix :
50+ include :
51+ - php-version : 8.0
52+
53+ steps :
54+ - name : " Checkout"
55+ uses : actions/checkout@v2
56+
57+ - name : " Setup PHP"
58+ uses : shivammathur/setup-php@v2
59+ with :
60+ coverage : xdebug
61+ php-version : ${{ matrix.php-version }}
62+
63+ - name : " Install dependencies with composer"
64+ run : composer update --no-interaction --no-progress --no-suggest
65+
66+ - name : " Run tests with phpunit/phpunit"
67+ env :
68+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
69+ run : |
70+ vendor/bin/phpunit --coverage-clover coverage.xml
71+
72+ - name : " Upload coverage to Codecov"
73+ uses : codecov/codecov-action@v1
74+
75+ checkstyke :
76+ name : " Checkstyle"
77+ runs-on : ubuntu-latest
78+
79+ strategy :
80+ matrix :
81+ include :
82+ - php-version : 8.0
83+
84+ steps :
85+ - name : " Checkout"
86+ uses : actions/checkout@v2
87+
88+ - name : " Setup PHP"
89+ uses : shivammathur/setup-php@v2
90+ with :
91+ coverage : xdebug
92+ php-version : ${{ matrix.php-version }}
93+
94+ - name : " Install dependencies with composer"
95+ run : composer update --no-interaction --no-progress --no-suggest
96+
97+ - name : " Run checkstyle with squizlabs/php_codesniffer"
98+ run : vendor/bin/phpcs
Original file line number Diff line number Diff line change 11/.idea /
22/vendor /
33/.phpcs-cache
4+ /.phpunit.result.cache
45/composer.lock
56/docker-compose.yml
67/phpunit.xml
Original file line number Diff line number Diff line change 1010 }
1111 ],
1212 "require" : {
13- "php" : " ^7.1.3" ,
13+ "php" : " ^7.1.3|^8.0 " ,
1414 "symfony/framework-bundle" : " ^4.4|^5.0"
1515 },
1616 "require-dev" : {
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2-
3- <phpunit backupGlobals =" false"
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd"
4+ backupGlobals =" false"
45 backupStaticAttributes =" false"
56 convertErrorsToExceptions =" true"
67 convertNoticesToExceptions =" true"
78 convertWarningsToExceptions =" true"
89 processIsolation =" false"
910 stopOnFailure =" false"
1011 colors =" true"
11- bootstrap =" vendor/autoload.php"
12- >
13-
12+ bootstrap =" vendor/autoload.php" >
1413 <testsuites >
1514 <testsuite name =" YokaiEnumBundle Test Suite" >
1615 <directory >./tests</directory >
1716 </testsuite >
1817 </testsuites >
19-
20- <filter >
21- <whitelist >
18+ <coverage >
19+ <include >
2220 <directory >./src</directory >
23- </whitelist >
24- </filter >
21+ </include >
22+ </coverage >
2523</phpunit >
You can’t perform that action at this time.
0 commit comments