Skip to content

Commit 75c5f64

Browse files
committed
update
1 parent fe40a9e commit 75c5f64

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,11 @@ jobs:
3131
# Run Linter
3232
run: make lint
3333

34+
# https://docs.sonarsource.com/sonarqube-cloud/enriching/test-coverage/php-test-coverage/
3435
- name: Run tests
3536
run: make test-coverage
3637

3738
- name: SonarQube Scan
3839
uses: SonarSource/sonarqube-scan-action@v5
3940
env:
4041
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
41-
with:
42-
# NOTE: https://sonarcloud.io/project/information?id=hexlet-boilerplates_php-package
43-
args: >
44-
-Dsonar.projectKey=hexlet-boilerplates_php-package
45-
-Dsonar.organization=hexlet-boilerplates
46-
-Dsonar.sources=src/
47-
-Dsonar.php.coverage.reportPaths=build/logs/clover.xml

sonar-project.properties

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
sonar.projectKey=hexlet-boilerplates_php-package
2+
sonar.organization=hexlet-boilerplates
3+
4+
5+
# This is the name and version displayed in the SonarCloud UI.
6+
#sonar.projectName=php-package
7+
#sonar.projectVersion=1.0
8+
9+
10+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
11+
sonar.sources=src/
12+
sonar.php.coverage.reportPaths=build/logs/clover.xml
13+
14+
# Encoding of the source code. Default is default system encoding
15+
#sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)