Skip to content

Commit

Permalink
chore: add CI steps for sonar (#576)
Browse files Browse the repository at this point in the history
Signed-off-by: Joris Mancini <joris.mancini_externe@rte-france.com>
  • Loading branch information
TheMaskedTurtle authored Sep 16, 2024
1 parent 1a794d6 commit 2a49981
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"ignorePatterns": [
// node_modules is implicitly always ignored
"dist",
"coverage",
"vite.config.mts",
"jest.config.ts",
"jest.setup.ts"
Expand Down
1 change: 1 addition & 0 deletions .github/config/.licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ header:
- '**/*.yaml'
- '**/*.yml'
- '**/*.svg'
- '**/*.properties'


comment: on-failure
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,11 @@ jobs:
npm install
npm run licenses-check
npm run lint
npm run test
npm run test:coverage
npm run build
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v3.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 3 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sonar.projectKey=gridsuite_commons-ui
sonar.organization=gridsuite
sonar.javascript.lcov.reportPaths=./coverage/lcov.info

0 comments on commit 2a49981

Please sign in to comment.