Skip to content

Commit 39128bb

Browse files
chore(ci): add PHP 8.5 to build matrix (#62)
* chore(ci): add PHP 8.5 to build matrix * chore(ci): fix coverage reporting
1 parent 2eb2e57 commit 39128bb

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build:
1313
strategy:
1414
matrix:
15-
php: ['8.1', '8.2', '8.3', '8.4']
15+
php: ['8.2', '8.3', '8.4', '8.5']
1616
phpunit: ['8.0', '9.0', '10.0', '11.0', '12.0']
1717
exclude:
1818
- php: '8.1'

.github/workflows/php_coverage.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Code coverage
33
on:
44
push:
55
branches:
6+
pull_request:
67

78
jobs:
89
coverage:
@@ -21,10 +22,11 @@ jobs:
2122
- name: Install dependencies
2223
run: composer install --prefer-dist --no-progress --no-suggest
2324

24-
- name: Test & publish code coverage
25-
uses: paambaati/codeclimate-action@v3.0.0
26-
env:
27-
CC_TEST_REPORTER_ID: ${{ secrets.codeClimateReporterID }}
25+
- name: Run unit tests
26+
run: ./vendor/bin/phpunit
27+
28+
- name: Upload coverage report
29+
uses: qltysh/qlty-action/coverage@v2
2830
with:
29-
coverageCommand: ./vendor/bin/phpunit --coverage-clover=clover.xml
30-
debug: true
31+
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
32+
files: build/clover.xml

phpunit.xml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
<?xml version="1.0"?>
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.0/phpunit.xsd"
55
bootstrap="vendor/autoload.php"
66
colors="true"
77
timeoutForSmallTests="1"
88
timeoutForMediumTests="10"
99
timeoutForLargeTests="60"
1010
cacheDirectory=".phpunit.cache">
1111
<testsuites>
12-
<testsuite name="functional">
13-
<directory>tests/Functional</directory>
14-
</testsuite>
12+
<testsuite name="functional">
13+
<directory>tests/Functional</directory>
14+
</testsuite>
1515
</testsuites>
1616
<logging>
17-
<junit outputFile="build/phpunit"/>
17+
<junit outputFile="build/phpunit"/>
1818
</logging>
1919
<coverage>
20-
<report>
21-
<html outputDirectory="build/coverage" lowUpperBound="35" highLowerBound="70"/>
22-
</report>
20+
<report>
21+
<clover outputFile="build/clover.xml"/>
22+
<html outputDirectory="build/coverage" lowUpperBound="35" highLowerBound="70"/>
23+
</report>
2324
</coverage>
2425
<source>
25-
<include>
26-
<directory suffix=".php">src</directory>
27-
</include>
26+
<include>
27+
<directory suffix=".php">src</directory>
28+
</include>
2829
</source>
2930
</phpunit>

0 commit comments

Comments
 (0)