Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: PHPUnit GA #3

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading