Skip to content

Commit

Permalink
Merge pull request #6 from renakdup/renakdup-patch-2
Browse files Browse the repository at this point in the history
Update phpunit.yaml
  • Loading branch information
renakdup authored May 13, 2024
2 parents 0c414ca + a8e401a commit d0a0db0
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/phpunit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
with:
php-version: ${{ env.PHP_VER }}
tools: composer:v${{ env.COMPOSER_VER }}
coverage: pcov

- name: Get Composer Cache Directory
id: composer-cache
Expand All @@ -38,5 +39,9 @@ jobs:
run: |
composer install
- name: Run PHPUnit
run: composer run phpunit
- name: Tests coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: composer run phpunit-coverage
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![UnitTests](https://github.com/renakdup/simple-wordpress-dic/actions/workflows/phpunit.yaml/badge.svg)](https://github.com/renakdup/simple-wordpress-dic/actions/workflows/phpunit.yaml)
[![PHPStan](https://github.com/renakdup/simple-wordpress-dic/actions/workflows/phpstan.yaml/badge.svg)](https://github.com/renakdup/simple-wordpress-dic/actions/workflows/phpstan.yaml)
[![PHP Version Require](http://poser.pugx.org/renakdup/simple-php-dic/require/php)](https://packagist.org/packages/renakdup/simple-php-dic)
[![Test Coverage](https://api.codeclimate.com/v1/badges/21ae6e3776b160b24e75/test_coverage)](https://codeclimate.com/github/renakdup/simple-php-dic/test_coverage)
[![Dependents](http://poser.pugx.org/renakdup/simple-php-dic/dependents)](https://packagist.org/packages/renakdup/simple-php-dic)


Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"symfony/var-dumper": "^5.4",
"phpstan/phpstan": "^1.10",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.1"
"phpstan/phpstan-deprecation-rules": "^1.1",
"rregeer/phpunit-coverage-check": "^0.3.1"
},
"autoload-dev": {
"psr-4": {
Expand All @@ -47,7 +48,8 @@
"phpcbf": "phpcbf --standard=./phpcs.xml",
"phpstan": "phpstan analyse -c phpstan.neon",
"phpstan.baselane": "phpstan analyse -c phpstan.neon --generate-baseline",
"phpunit": "phpunit"
"phpunit": "phpunit",
"phpunit-coverage": "phpunit --coverage-clover clover.xml"
},
"config": {
"allow-plugins": {
Expand Down
48 changes: 47 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
">
<coverage includeUncoveredFiles="true">
<include>
<directory suffix=".php">/</directory>
<directory suffix=".php">./src</directory>
</include>
</coverage>

Expand Down

0 comments on commit d0a0db0

Please sign in to comment.