Skip to content

Commit

Permalink
fix: PHPUnit GA (#3)
Browse files Browse the repository at this point in the history
* fix: PHPUnit GA

* fix: file source
  • Loading branch information
ddevsr authored Aug 14, 2024
1 parent 32ffe20 commit 2b9a097
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/test-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,10 @@ jobs:
run: |
vendor/bin/phpcov merge --clover build/logs/clover.xml build/cov
coveralls:
needs: [main]
name: Coveralls Finished
runs-on: ubuntu-latest
steps:
- name: Upload Coveralls results
uses: coverallsapp/github-action@master
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
- if: matrix.php-versions == '8.1'
name: Upload coverage to Coveralls
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --verbose --exclude-no-stmt --ansi
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@
"cs": "vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff",
"rector": "vendor/bin/rector process --dry-run",
"phpstan": "bash -c \"XDEBUG_MODE=off phpstan analyse\"",
"test": "vendor/bin/phpunit tests/"
"test": "vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml --coverage-php build/cov/coverage.cov --testsuite main"
}
}
5 changes: 1 addition & 4 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,8 @@
</logging>
<source>
<include>
<directory suffix=".php">tests</directory>
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory suffix=".php">tests/_support</directory>
</exclude>
</source>
<php>
<ini name="date.timezone" value="UTC" />
Expand Down

0 comments on commit 2b9a097

Please sign in to comment.