Skip to content

Commit 141909d

Browse files
authored
Bugfix/Sonarcloud reports. (#10)
1 parent 5676aa3 commit 141909d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
types: [ opened, synchronize, reopened ]
99

@@ -49,6 +49,7 @@ jobs:
4949
- name: Fix coverage.xml for Sonar
5050
run: |
5151
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage.xml
52+
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' test.xml
5253
5354
- name: SonarCloud Scan
5455
uses: SonarSource/sonarcloud-github-action@master

sonar-project.properties

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ sonar.projectName=Complex Heart Criteria
22
sonar.projectKey=ComplexHeart_php-criteria
33
sonar.organization=complexheart
44
sonar.language=php
5-
sonar.sources=./src
6-
sonar.tests=./tests
7-
sonar.inclusions=./src/**
8-
sonar.exclusions=./tests/**
5+
sonar.sources=src
6+
sonar.tests=tests
97
sonar.php.coverage.reportPaths=coverage.xml
10-
sonar.php.tests.reportPaths=phpunit.xml
8+
sonar.php.tests.reportPath=test.xml

0 commit comments

Comments
 (0)