Skip to content

Commit

Permalink
feat: add sonarqube properties
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelTshDev committed Mar 19, 2024
1 parent 1817b49 commit c82cead
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,15 @@ jobs:
- run: npm run lint
- run: npm run units
- run: npm run integration

sonarqube-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
11 changes: 11 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sonar.projectKey=boilerplate-express
sonar.projectName=express-boilerplate
sonar.organization=thesoftwarehouse
sonar.host.url=${env.SONAR_HOST_URL}
sonar.token=${env.SONAR_TOKEN}
sonar.exclusions=src/migrations/**
sonar.sources=src
sonar.tests=src
sonar.test.inclusions=**/*.spec.ts
sonar.sourceEncoding=UTF-8
sonar.javascript.lcov.reportPaths=coverage/unit/lcov.info,coverage/integration/lcov.info

0 comments on commit c82cead

Please sign in to comment.