Skip to content

Commit

Permalink
Bugfix/Sonarcloud reports. (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
othercodes authored May 20, 2022
1 parent 5676aa3 commit 141909d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on:
push:
branches:
- master
- main
pull_request:
types: [ opened, synchronize, reopened ]

Expand Down Expand Up @@ -49,6 +49,7 @@ jobs:
- name: Fix coverage.xml for Sonar
run: |
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage.xml
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' test.xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
Expand Down
8 changes: 3 additions & 5 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ sonar.projectName=Complex Heart Criteria
sonar.projectKey=ComplexHeart_php-criteria
sonar.organization=complexheart
sonar.language=php
sonar.sources=./src
sonar.tests=./tests
sonar.inclusions=./src/**
sonar.exclusions=./tests/**
sonar.sources=src
sonar.tests=tests
sonar.php.coverage.reportPaths=coverage.xml
sonar.php.tests.reportPaths=phpunit.xml
sonar.php.tests.reportPath=test.xml

0 comments on commit 141909d

Please sign in to comment.