Skip to content

Commit

Permalink
chore: refactor sonar properties
Browse files Browse the repository at this point in the history
  • Loading branch information
rudemex committed Sep 26, 2021
1 parent 1657498 commit 6858e5c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
- name: "📊 SonarCloud Scan"
uses: SonarSource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=${{ github.event.repository.owner.name }}
-Dsonar.projectKey=${{ github.event.repository.owner.name }}_${{ github.event.repository.name }}
-Dsonar.projectName=${{ github.event.repository.owner.name }}_${{ github.event.repository.name }}
-Dsonar.projectVersion=1.0
-Dsonar.sourceEncoding=UTF-8
-Dsonar.sources=./src
-Dsonar.exclusions=**/*.bin,node_modules/**,test/**,**/__test__/**,**/__mocks__/**,src/index.ts
-Dsonar.coverage.exclusions=node_modules/**,test/**,**/__test__/**,**/__mocks__/**,src/index.ts
-Dsonar.testExecutionReportPaths=test-report.xml
-Dsonar.typescript.lcov.reportPaths=./coverage/lcov.info
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
- name: "📊 SonarCloud Scan"
uses: SonarSource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=${{ github.event.repository.owner.name }}
-Dsonar.projectKey=${{ github.event.repository.owner.name }}_${{ github.event.repository.name }}
-Dsonar.projectName=${{ github.event.repository.owner.name }}_${{ github.event.repository.name }}
-Dsonar.projectVersion=1.0
-Dsonar.sourceEncoding=UTF-8
-Dsonar.sources=./src
-Dsonar.exclusions=**/*.bin,node_modules/**,test/**,**/__test__/**,**/__mocks__/**,src/index.ts
-Dsonar.coverage.exclusions=node_modules/**,test/**,**/__test__/**,**/__mocks__/**,src/index.ts
-Dsonar.testExecutionReportPaths=test-report.xml
-Dsonar.typescript.lcov.reportPaths=./coverage/lcov.info
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
13 changes: 0 additions & 13 deletions sonar-project.properties

This file was deleted.

0 comments on commit 6858e5c

Please sign in to comment.