-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
898bc44
commit bbe630e
Showing
4 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: SonarQube Analysis | ||
on: | ||
push: | ||
branches: | ||
- "feat/add-sonar" | ||
jobs: | ||
sonarqube-analysis: | ||
name: SonarQube Analysis | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- uses: sonarsource/sonarqube-scan-action@master | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
# Project identification | ||
sonar.organization=wednesday-solutions | ||
sonar.projectKey=wednesday-solutions_next-bulletproof-ts_AY6yu6eKB2n8RRmGoUz4 | ||
|
||
# Specify the language | ||
sonar.language=ts | ||
|
||
# Source directory | ||
sonar.sources=. | ||
sonar.tests=app | ||
sonar.exclusions=**/tests/**/*.*,**/storybook/**/*.*,**/internals/**/*.*,**/server/**/*.*,app/**/*.test.{ts,tsx},app/*/RbGenerated*/*.{ts,tsx},app/app.ts,app/global-styles.ts,app/*/*/loadable.{ts,tsx},**/loadable.ts,**/apiUtils.ts,**/testUtils.ts,**/stories/**,**/themes/index.ts | ||
sonar.test.inclusions=**/*.test.ts, **/*.test.tsx | ||
sonar.javascript.lcov.reportPaths=./coverage/lcov.info | ||
sonar.testExecutionReportPaths=./reports/test-report.xml | ||
sonar.sourceEncoding=UTF-8 | ||
|
||
# Test directory | ||
sonar.tests=common,containers,features,pages,store,styles,themes,translations,utils | ||
|
||
# Exclude node_modules | ||
# Let's not exclude anything for now, after refractoring changes we can decide what to exclude from the analysis | ||
sonar.exclusions=node_modules/**/* | ||
|
||
# Encoding of the source code | ||
sonar.sourceEncoding=UTF-8 | ||
|
||
# Coverage report path | ||
sonar.javascript.lcov.reportPaths=coverage/lcov.info | ||
|
||
# Test execution report path | ||
sonar.testExecutionReportPaths=./reports/test-report.xml |