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 1
1
/.idea /
2
2
/vendor /
3
3
/.phpcs-cache
4
+ /.phpunit.result.cache
4
5
/composer.lock
5
6
/docker-compose.yml
6
7
/phpunit.xml
Original file line number Diff line number Diff line change 10
10
}
11
11
],
12
12
"require" : {
13
- "php" : " ^7.1.3" ,
13
+ "php" : " ^7.1.3|^8.0 " ,
14
14
"symfony/framework-bundle" : " ^4.4|^5.0"
15
15
},
16
16
"require-dev" : {
Original file line number Diff line number Diff line change 1
1
<?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"
4
5
backupStaticAttributes =" false"
5
6
convertErrorsToExceptions =" true"
6
7
convertNoticesToExceptions =" true"
7
8
convertWarningsToExceptions =" true"
8
9
processIsolation =" false"
9
10
stopOnFailure =" false"
10
11
colors =" true"
11
- bootstrap =" vendor/autoload.php"
12
- >
13
-
12
+ bootstrap =" vendor/autoload.php" >
14
13
<testsuites >
15
14
<testsuite name =" YokaiEnumBundle Test Suite" >
16
15
<directory >./tests</directory >
17
16
</testsuite >
18
17
</testsuites >
19
-
20
- <filter >
21
- <whitelist >
18
+ <coverage >
19
+ <include >
22
20
<directory >./src</directory >
23
- </whitelist >
24
- </filter >
21
+ </include >
22
+ </coverage >
25
23
</phpunit >
You can’t perform that action at this time.
0 commit comments