File tree 8 files changed +42
-22
lines changed
8 files changed +42
-22
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,13 @@ jobs:
70
70
71
71
steps :
72
72
- name : Checkout code
73
- uses : actions/checkout@v2
73
+ uses : actions/checkout@v3
74
74
75
75
- name : Setup PHP
76
76
uses : shivammathur/setup-php@v2
77
77
with :
78
78
php-version : ${{ matrix.php }}
79
- coverage : none
79
+ coverage : pcov
80
80
tools : composer:v2
81
81
82
82
- name : Install Composer dependencies
97
97
98
98
- name : Run phpunit
99
99
run : composer test:ci
100
+
101
+ - name : Upload code coverage
102
+ uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- name : Checkout
16
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v3
17
17
18
18
- name : Setup PHP
19
19
uses : shivammathur/setup-php@v2
20
20
with :
21
21
php-version : ' 8.2'
22
+ coverage : none
22
23
23
24
- name : Install dependencies
24
25
run : composer update --no-progress --no-interaction --prefer-dist
Original file line number Diff line number Diff line change 15
15
runs-on : ubuntu-latest
16
16
name : Release version
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v3
19
19
with :
20
20
token : ${{ secrets.GH_RELEASE_PAT }}
21
21
fetch-depth : 0
Original file line number Diff line number Diff line change 19
19
uses : shivammathur/setup-php@v2
20
20
with :
21
21
php-version : ' 8.2'
22
+ coverage : none
22
23
23
24
- name : Install dependencies
24
25
run : composer update --no-progress --no-interaction --prefer-dist
Original file line number Diff line number Diff line change 6
6
composer.lock
7
7
8
8
# phpunit/phpunit
9
+ coverage.xml
9
10
.phpunit.result.cache
10
11
11
12
# friendsofphp/php-cs-fixer
Original file line number Diff line number Diff line change
1
+ comment : false
2
+
3
+ coverage :
4
+ status :
5
+ project :
6
+ default :
7
+ threshold : 0.1% # allow for 0.1% reduction of coverage without failing
Original file line number Diff line number Diff line change 49
49
"scripts" : {
50
50
"test" : " vendor/bin/phpunit" ,
51
51
"tests" : " @test" ,
52
- "test:ci" : " vendor/bin/phpunit" ,
52
+ "test:ci" : " vendor/bin/phpunit --coverage-clover=coverage.xml " ,
53
53
"phpcs" : " vendor/bin/php-cs-fixer fix" ,
54
54
"phpcs:ci" : " vendor/bin/php-cs-fixer fix --dry-run --diff" ,
55
55
"phpstan" : " vendor/bin/phpstan analyse" ,
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit backupStaticAttributes =" false"
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
4
+ backupGlobals =" true"
3
5
colors =" true"
4
- convertErrorsToExceptions =" true"
5
- convertNoticesToExceptions =" true"
6
- convertWarningsToExceptions =" true"
7
- processIsolation =" false"
8
- stopOnFailure =" false"
9
- bootstrap =" test/bootstrap.php" >
10
- <testsuites >
11
- <testsuite name =" Sentry Test Suite" >
12
- <directory >./test/Sentry/</directory >
13
- </testsuite >
14
- </testsuites >
15
- <coverage >
16
- <include >
17
- <directory suffix =" .php" >./src/Sentry/</directory >
18
- </include >
19
- </coverage >
6
+ bootstrap =" test/bootstrap.php"
7
+ cacheResult =" false"
8
+ beStrictAboutOutputDuringTests =" true"
9
+ >
10
+ <testsuites >
11
+ <testsuite name =" Sentry Laravel Test Suite" >
12
+ <directory >./test/Sentry/</directory >
13
+ </testsuite >
14
+ </testsuites >
15
+
16
+ <coverage >
17
+ <include >
18
+ <directory suffix =" .php" >./src/Sentry/</directory >
19
+ </include >
20
+ </coverage >
21
+
22
+ <filter >
23
+ <whitelist >
24
+ <directory suffix =" .php" >src</directory >
25
+ </whitelist >
26
+ </filter >
20
27
</phpunit >
You can’t perform that action at this time.
0 commit comments