File tree 3 files changed +57
-18
lines changed
3 files changed +57
-18
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,34 @@ jobs:
56
56
run : composer update --prefer-dist --no-interaction
57
57
58
58
- name : PHPUnit tests with coverage
59
- run : vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
59
+ run : vendor/bin/phpunit
60
60
61
61
- name : Run PHPStan
62
62
run : ./vendor/bin/phpstan
63
63
64
+ phpunit-coverage-check :
65
+ name : PHPUnit Coverage Check
66
+ runs-on : ubuntu-latest
67
+ steps :
68
+ - name : Checkout code
69
+ uses : actions/checkout@v4
70
+
71
+ - name : Install PHP 8.4
72
+ uses : shivammathur/setup-php@master
73
+ with :
74
+ php-version : 8.4
75
+ extensions : mbstring
76
+ coverage : xdebug, pcov
77
+ tools : composer:v2
78
+
79
+ - name : Install dependencies
80
+ run : composer install --prefer-dist --no-progress
81
+
82
+ - name : Run tests
83
+ run : ./vendor/bin/phpunit --coverage-clover clover.xml
84
+
64
85
- name : Coverage Check
65
- uses : ericsizemore/phpunit-coverage-check-action@1.0.0
86
+ uses : docker://ghcr.io/ ericsizemore/phpunit-coverage-check-action
66
87
with :
67
- clover_file : ' coverage .xml'
68
- threshold : 80
88
+ clover_file : ' clover .xml'
89
+ threshold : 80
Original file line number Diff line number Diff line change @@ -57,17 +57,35 @@ jobs:
57
57
- name : Install dependencies
58
58
run : composer update --prefer-dist --no-interaction
59
59
60
- - name : PHPUnit tests with coverage
61
- run : vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
60
+ - name : Run Tests
61
+ run : vendor/bin/phpunit
62
62
63
63
- name : Run PHPStan
64
64
run : ./vendor/bin/phpstan
65
65
66
- - name : Run codecov
67
- uses : codecov/codecov-action@v1
66
+ phpunit-coverage-check :
67
+ name : PHPUnit Coverage Check
68
+ runs-on : ubuntu-latest
69
+ steps :
70
+ - name : Checkout code
71
+ uses : actions/checkout@v4
72
+
73
+ - name : Install PHP 8.4
74
+ uses : shivammathur/setup-php@master
75
+ with :
76
+ php-version : 8.4
77
+ extensions : mbstring
78
+ coverage : xdebug, pcov
79
+ tools : composer:v2
80
+
81
+ - name : Install dependencies
82
+ run : composer install --prefer-dist --no-progress
83
+
84
+ - name : Run tests
85
+ run : ./vendor/bin/phpunit --coverage-clover clover.xml
68
86
69
87
- name : Coverage Check
70
- uses : ericsizemore/phpunit-coverage-check-action@1.0.0
88
+ uses : docker://ghcr.io/ ericsizemore/phpunit-coverage-check-action
71
89
with :
72
- clover_file : ' coverage .xml'
90
+ clover_file : ' clover .xml'
73
91
threshold : 80
Original file line number Diff line number Diff line change 11
11
convertWarningsToExceptions =" true"
12
12
stopOnFailure =" false"
13
13
>
14
- <coverage processUncoveredFiles =" true" >
15
- <include >
16
- <directory suffix =" .php" >src</directory >
17
- </include >
18
- <report >
19
- <html outputDirectory =" coverage" />
20
- </report >
21
- </coverage >
14
+ <!-- <coverage processUncoveredFiles="true"> -- >
15
+ <!-- <include> -- >
16
+ <!-- <directory suffix=".php">src</directory> -- >
17
+ <!-- </include> -- >
18
+ <!-- <report> -- >
19
+ <!-- <html outputDirectory="coverage"/> -- >
20
+ <!-- </report> -- >
21
+ <!-- </coverage> -- >
22
22
<testsuites >
23
23
<testsuite name =" default" >
24
24
<directory >test</directory >
You can’t perform that action at this time.
0 commit comments