Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build:
strategy:
matrix:
php: ['8.1', '8.2', '8.3', '8.4']
php: ['8.2', '8.3', '8.4', '8.5']
phpunit: ['8.0', '9.0', '10.0', '11.0', '12.0']
exclude:
- php: '8.1'
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/php_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Code coverage
on:
push:
branches:
pull_request:

jobs:
coverage:
Expand All @@ -21,10 +22,11 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.codeClimateReporterID }}
- name: Run unit tests
run: ./vendor/bin/phpunit

- name: Upload coverage report
uses: qltysh/qlty-action/coverage@v2
with:
coverageCommand: ./vendor/bin/phpunit --coverage-clover=clover.xml
debug: true
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
files: build/clover.xml
23 changes: 12 additions & 11 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.0/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
timeoutForSmallTests="1"
timeoutForMediumTests="10"
timeoutForLargeTests="60"
cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="functional">
<directory>tests/Functional</directory>
</testsuite>
<testsuite name="functional">
<directory>tests/Functional</directory>
</testsuite>
</testsuites>
<logging>
<junit outputFile="build/phpunit"/>
<junit outputFile="build/phpunit"/>
</logging>
<coverage>
<report>
<html outputDirectory="build/coverage" lowUpperBound="35" highLowerBound="70"/>
</report>
<report>
<clover outputFile="build/clover.xml"/>
<html outputDirectory="build/coverage" lowUpperBound="35" highLowerBound="70"/>
</report>
</coverage>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>