Skip to content

Commit

Permalink
ci: configure SonarQube
Browse files Browse the repository at this point in the history
  • Loading branch information
gavvvr committed Jan 21, 2025
1 parent 1789225 commit c653bb9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,20 @@ jobs:
with:
name: lcov.info
path: out/coverage/lcov.info

SonarScan:
needs: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Download coverage data
uses: actions/download-artifact@v4
with:
name: lcov.info
path: coverage/
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
9 changes: 9 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sonar.projectKey=gavvvr_obsidian-imgur-plugin
sonar.organization=gavvvr

sonar.sources=src
sonar.exclusions=**/*.test.ts
sonar.tests=src
sonar.test.inclusions=**/*.test.ts

sonar.javascript.lcov.reportPaths=./coverage/lcov.info

0 comments on commit c653bb9

Please sign in to comment.