Skip to content

Commit

Permalink
Add sonarcloud integration (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
argaen authored May 21, 2024
1 parent a3d66af commit 6f8d104
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,14 @@ jobs:

- name: Test
run: yarn maffin:test --coverage

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=maffin-io
-Dsonar.projectKey=maffin-io_maffin-app
-Dsonar.sources=./src/
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5 changes: 5 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ const config = {
branches: 85.5,
},
},
coverageReporters: [
'text',
'text-summary',
'lcov'
],
testEnvironment: 'jest-environment-jsdom',
testPathIgnorePatterns: [
'/node_modules',
Expand Down

0 comments on commit 6f8d104

Please sign in to comment.