Skip to content

Commit

Permalink
chore: fixes Sonar action (#82)
Browse files Browse the repository at this point in the history
* chore: fixes Sonar action

* removed lcov fix step

* added back lcov fix with sed cmd modified (removed last slash)

* set sonar action to run in debug mode

* fixes sonar exclusion properties
  • Loading branch information
petruki authored Dec 7, 2024
1 parent 06ebe33 commit b74c668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ jobs:
- name: Run tests and coverage
run: deno task cover

- name: Fix LCOV output for SonarCloud
run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage/report.lcov

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
uses: sonarsource/sonarqube-scan-action@v4.1.0
env:
RUNNER_DEBUG: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sonar.tests=test
sonar.language=typescript

sonar.dynamicAnalysis=reuseReports
sonar.exclusions=src/lib/utils/timed-match/worker.ts,src/lib/utils/executionLogger.ts
sonar.exclusions=mod.ts,src/lib/utils/timed-match/worker.ts

# Ignore invalid rule for Deno tests
sonar.issue.ignore.multicriteria=e1
Expand Down

0 comments on commit b74c668

Please sign in to comment.