Skip to content

Commit

Permalink
add frontend to sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Jan 11, 2024
1 parent a5dd610 commit cb5f24a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/coverage-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,17 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cd pkpdapp && codecov
- name: SonarCloud Scan
- name: SonarCloud Scan Backend
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: pkpdapp
- name: SonarCloud Scan Frontend
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_FRONTEND }}
with:
projectBaseDir: pkpdapp
17 changes: 17 additions & 0 deletions frontend-v2/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
sonar.projectKey=pkpdapp-team_pkpdapp_frontend
sonar.organization=pkpdapp-team
sonar.sources=src/
sonar.tests.exclusions=cypress/**
sonar.tests=cypress/


# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=pkpdapp
#sonar.projectVersion=1.0


# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
2 changes: 1 addition & 1 deletion pkpdapp/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sonar.projectKey=pkpdapp-team_pkpdapp
sonar.organization=pkpdapp-team
sonar.python.coverage.reportPaths=pkpdapp/coverage.xml
sonar.python.coverage.reportPaths=coverage.xml
sonar.sources=pkpdapp/
sonar.tests.exclusions=pkpdapp/tests/**
sonar.tests=pkpdapp/tests/
Expand Down

0 comments on commit cb5f24a

Please sign in to comment.