Skip to content

Commit

Permalink
sonar coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kamenitxan committed Jul 16, 2023
1 parent b1c12a5 commit b9a148c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/sbt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,18 @@ jobs:
uses: codecov/[email protected]
with:
fail_ci_if_error: true
- name: Replace all working directory paths with sources path
run: if [[ -n "${{ inputs.scoverageReport }}" ]]; then sed -i -e s,`pwd`,/github/workspace,g ${{ inputs.scoverageReport }}; fi
shell: bash
with:
scoverageReport: modules/backend/target/scala-3.3.1-RC4/scoverage-report/scoverage.xml
- name: Analyze with SonarCube
uses: pervasive-cats/[email protected]
uses: sonarsource/sonarqube-scan-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
scoverageReport: modules/backend/target/scala-3.3.1-RC4/scoverage-report/scoverage.xml
args: >
-Dsonar.projectKey=kamenitxan_Jakon_AYX5P6qaok6eoBlpoZHT
-Dsonar.sources=modules/backend/src
Expand Down

0 comments on commit b9a148c

Please sign in to comment.