Skip to content

Commit d789ba0

Browse files
committed
Update coverage file paths in configuration files
- Adjusted the coverage output file path in composer.json and phpunit.xml to ensure consistency. - Modified the GitHub Actions workflow to create necessary directories for build logs and updated the coverage file path accordingly.
1 parent bca2eb3 commit d789ba0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/phpunits.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
- name: Prepare run test suite
125125
id: unit-prepare
126126
run: |
127-
mkdir build
127+
mkdir -p build/logs
128128
129129
- name: Run test suite
130130
id: unit-run
@@ -149,7 +149,7 @@ jobs:
149149
uses: coverallsapp/github-action@v2
150150
with:
151151
github-token: ${{ secrets.GITHUB_TOKEN }}
152-
file: build/logs/clover.xml
152+
file: build/clover.xml
153153
format: cobertura
154154
flag-name: run-${{ matrix.php-versions }}-${{ matrix.databases }}-${{ matrix.caches }}-${{ matrix.locks }}
155155
parallel: true

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
}
6060
},
6161
"scripts": {
62-
"parabench": "@php ./vendor/bin/testbench package:test --coverage-clover=build/logs/clover.xml --log-junit=build/junit.xml",
62+
"parabench": "@php ./vendor/bin/testbench package:test --coverage-clover=build/clover.xml --log-junit=build/junit.xml",
6363
"infect": "@php vendor/bin/infection --coverage=build --min-msi=50 -j$(nproc) --only-covering-test-cases",
6464
"phpstan": [
6565
"@phpstan-src",

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
cacheDirectory=".phpunit.cache" backupStaticProperties="false">
88
<coverage>
99
<report>
10-
<clover outputFile="./build/logs/clover.xml"/>
10+
<clover outputFile="./build/clover.xml"/>
1111
<html outputDirectory="./build/html/"/>
1212
</report>
1313
</coverage>

0 commit comments

Comments
 (0)