Skip to content

Commit

Permalink
Merge pull request #31 from neuefische/30-configure-jest-coverage-for…
Browse files Browse the repository at this point in the history
…-sonarcloud

30 configure jest coverage for sonarcloud
  • Loading branch information
josch87 authored Jun 9, 2024
2 parents 2020dbd + b70e3ef commit 3ae75bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/sonarcloud-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install dependencies
working-directory: ./frontend
run: npm install
- name: Test with coverage
working-directory: ./frontend
run: npx jest --coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
4 changes: 3 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ sonar.organization=neuefische
sonar.sources=./frontend/src

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
#sonar.sourceEncoding=UTF-8

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

0 comments on commit 3ae75bb

Please sign in to comment.