Skip to content

Commit

Permalink
ci: consistent workflow for all tests (#351)
Browse files Browse the repository at this point in the history
closes #350
  • Loading branch information
g105b committed Apr 28, 2023
1 parent 8b01a76 commit 5da9c2e
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 36 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ jobs:
with:
php_version: ${{ matrix.php }}
php_extensions: xdebug
configuration: test/phpunit/phpunit.xml
bootstrap: vendor/autoload.php
coverage_text: _coverage/coverage.txt
coverage_clover: _coverage/clover.xml

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"require-dev": {
"ext-sqlite3": "*",
"phpstan/phpstan": "^v1.10",
"phpunit/phpunit": "^10.0",
"phpunit/phpunit": "^10.1",
"phpmd/phpmd": "^2.13",
"squizlabs/php_codesniffer": "^3.7"
},
Expand Down
32 changes: 17 additions & 15 deletions composer.lock

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

28 changes: 28 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
colors="true"
cacheDirectory="test/phpunit/.phpunit.cache"
bootstrap="vendor/autoload.php"
>
<coverage />

<testsuites>
<testsuite name="main">
<directory>
./test/phpunit/
</directory>
</testsuite>
</testsuites>

<logging />

<source>
<include>
<directory>
src/
</directory>
</include>
</source>
</phpunit>
18 changes: 0 additions & 18 deletions test/phpunit/phpunit.xml

This file was deleted.

0 comments on commit 5da9c2e

Please sign in to comment.