Skip to content

Commit 9bf503f

Browse files
committed
update
1 parent 69932ae commit 9bf503f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/workflow.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ jobs:
3232
run: make lint
3333

3434
- name: Run tests
35-
run: make test
35+
run: make test-coverage
3636

3737
- name: SonarQube Scan
3838
uses: SonarSource/sonarqube-scan-action@v5
3939
env:
4040
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
41+
with:
42+
args: >
43+
-Dsonar.php.coverage.reportPaths=build/logs/clover.xml

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test:
1515
composer exec --verbose phpunit tests
1616

1717
test-coverage:
18-
XDEBUG_MODE=coverage composer exec --verbose phpunit tests -- --coverage-clover=coverage.xml
18+
XDEBUG_MODE=coverage composer exec --verbose phpunit tests -- --coverage-clover=build/logs/clover.xml
1919

2020
test-coverage-text:
2121
XDEBUG_MODE=coverage composer exec --verbose phpunit tests -- --coverage-text

0 commit comments

Comments
 (0)