Skip to content

Commit 9288ef0

Browse files
committed
chore: cleanup
1 parent f4aaab5 commit 9288ef0

File tree

4 files changed

+29
-33
lines changed

4 files changed

+29
-33
lines changed

.github/workflows/testing.yml

+23-24
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,28 @@ on: # yamllint disable-line rule:truthy
1111
- master
1212

1313
jobs:
14-
code-coverage:
14+
testing:
1515
timeout-minutes: 4
1616
runs-on: ${{ matrix.os }}
1717
concurrency:
1818
cancel-in-progress: true
19-
group: code-coverage-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
19+
group: testing-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
2020
strategy:
2121
fail-fast: true
2222
matrix:
2323
os:
2424
- 'ubuntu-latest'
2525
php-version:
26-
- '8.4'
26+
- '8.1'
27+
- '8.2'
28+
- '8.3'
2729
dependencies:
30+
- lowest
2831
- locked
32+
- highest
33+
include:
34+
- php-version: '8.4'
35+
dependencies: highest
2936
steps:
3037
- name: 📦 Check out the codebase
3138
uses: actions/checkout@v4
@@ -35,7 +42,6 @@ jobs:
3542
with:
3643
php-version: ${{ matrix.php-version }}
3744
ini-values: error_reporting=E_ALL
38-
coverage: xdebug
3945

4046
- name: 🛠️ Setup problem matchers
4147
run: |
@@ -50,38 +56,24 @@ jobs:
5056
with:
5157
dependency-versions: ${{ matrix.dependencies }}
5258

53-
- name: 🧪 Collect code coverage with Xdebug and PhpUnit
54-
run: composer test:cc
55-
56-
- name: 📤 Upload code coverage report to Codecov
57-
uses: codecov/[email protected]
58-
with:
59-
files: .build/phpunit/logs/clover.xml
60-
token: ${{ secrets.CODECOV_TOKEN }}
61-
verbose: true
59+
- name: 🧪 Run tests
60+
run: composer test
6261

63-
testing:
62+
code-coverage:
6463
timeout-minutes: 4
6564
runs-on: ${{ matrix.os }}
6665
concurrency:
6766
cancel-in-progress: true
68-
group: testing-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
67+
group: code-coverage-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
6968
strategy:
7069
fail-fast: true
7170
matrix:
7271
os:
7372
- 'ubuntu-latest'
7473
php-version:
7574
- '8.1'
76-
- '8.2'
77-
- '8.3'
7875
dependencies:
79-
- lowest
8076
- locked
81-
- highest
82-
include:
83-
- php-version: '8.4'
84-
dependencies: highest
8577
steps:
8678
- name: 📦 Check out the codebase
8779
uses: actions/checkout@v4
@@ -106,8 +98,15 @@ jobs:
10698
with:
10799
dependency-versions: ${{ matrix.dependencies }}
108100

109-
- name: 🧪 Run tests
110-
run: composer test
101+
- name: 🧪 Collect code coverage with Xdebug and PhpUnit
102+
run: composer test:cc
103+
104+
- name: 📤 Upload code coverage report to Codecov
105+
uses: codecov/codecov-action@v4
106+
with:
107+
files: runtime/phpunit/logs/clover.xml
108+
token: ${{ secrets.CODECOV_TOKEN }}
109+
verbose: true
111110

112111
compile-phar:
113112
timeout-minutes: 4

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"test:arch": "phpunit --color=always --testsuite=Arch",
121121
"test:cc": [
122122
"@putenv XDEBUG_MODE=coverage",
123-
"phpunit --coverage-clover=.build/phpunit/logs/clover.xml --color=always"
123+
"phpunit --coverage-clover=runtime/phpunit/logs/clover.xml --color=always"
124124
]
125125
}
126126
}

phpunit.xml.dist

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
colors="true"
6-
cacheResultFile=".build/phpunit/result.cache"
6+
cacheResultFile="runtime/phpunit/result.cache"
77
failOnWarning="true"
88
failOnRisky="true"
99
executionOrder="random"
@@ -22,13 +22,13 @@
2222
</testsuites>
2323
<coverage>
2424
<report>
25-
<html outputDirectory=".build/coverage"/>
26-
<text outputFile=".build/coverage.txt"/>
27-
<clover outputFile=".build/logs/clover.xml"/>
25+
<html outputDirectory="runtime/coverage"/>
26+
<text outputFile="runtime/coverage.txt"/>
27+
<clover outputFile="runtime/logs/clover.xml"/>
2828
</report>
2929
</coverage>
3030
<logging>
31-
<junit outputFile=".build/report.junit.xml"/>
31+
<junit outputFile="runtime/report.junit.xml"/>
3232
</logging>
3333
<source>
3434
<include>

rector.php

-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
__DIR__ . '/src/Client',
2525
])
2626
->withSkipPath('src/Client/TrapHandle/ContextProvider/Source.php')
27-
->withPHPStanConfigs([
28-
__DIR__ . '/phpstan-baseline.neon',
29-
])
3027
->withImportNames(importNames: false, importDocBlockNames: true, importShortClasses: false, removeUnusedImports: true)
3128
->withPhpVersion(PhpVersion::PHP_81)
3229
->withPhpSets(php81: true)

0 commit comments

Comments
 (0)