Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Palanisamy Easwaramoorthy committed Jun 9, 2020
1 parent 54449aa commit 7593404
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,20 @@ uses: monstar-lab-oss/sonarqube-github-action@v1
with:
url: ${{ secrets.SONARQUBE_URL }}
token: ${{ secrets.SONARQUBE_TOKEN }}
```

## SonarQube Analysis Parameters
Except 'sonar.host.url' and 'sonar.login' you can have your project configuration file 'sonar-project.properties' for sonar scanner in root directory of your project repo.

Please make sure your run the unit tests before running the sonar scanner to generate the code coverage report.

Example : sonar-project.properties
```bash
sonar.language=php
sonar.php.tests.reportPath=tests/report/junit.xml
sonar.php.coverage.reportPaths=tests/report/coverage.xml
sonar.projectKey=example-project
sonar.projectName=example-project
sonar.sources=./app
sonar.sourceEncoding=UTF-8
```

0 comments on commit 7593404

Please sign in to comment.