Skip to content

Commit 2f9a57a

Browse files
committed
use phpunit-coverage-check
1 parent 8f092fd commit 2f9a57a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/unit-test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,4 @@ jobs:
1919
tools: composer, phpunit
2020
- run: composer install -n --prefer-dist
2121
- run: php vendor/phpunit/phpunit/phpunit -c phpunit.xml --coverage-clover=coverage.xml
22-
- name: PHPUnit Coverage Check
23-
uses: ericsizemore/[email protected]
24-
with:
25-
clover_file: "coverage.xml"
26-
threshold: 70
22+
- run: php vendor/bin/coverage-check clover.xml 70

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"ext-xdebug": "*"
4040
},
4141
"require-dev": {
42-
"phpunit/phpunit": "9.5.*"
42+
"phpunit/phpunit": "^9",
43+
"rregeer/phpunit-coverage-check": "^0.3.1"
4344
},
4445
"autoload": {
4546
"psr-4": {

0 commit comments

Comments
 (0)