Skip to content

Commit 2a49981

Browse files
chore: add CI steps for sonar (#576)
Signed-off-by: Joris Mancini <[email protected]>
1 parent 1a794d6 commit 2a49981

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"ignorePatterns": [
1414
// node_modules is implicitly always ignored
1515
"dist",
16+
"coverage",
1617
"vite.config.mts",
1718
"jest.config.ts",
1819
"jest.setup.ts"

.github/config/.licenserc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ header:
1919
- '**/*.yaml'
2020
- '**/*.yml'
2121
- '**/*.svg'
22+
- '**/*.properties'
2223

2324

2425
comment: on-failure

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,11 @@ jobs:
3636
npm install
3737
npm run licenses-check
3838
npm run lint
39-
npm run test
39+
npm run test:coverage
4040
npm run build
41+
42+
- name: SonarCloud Scan
43+
uses: SonarSource/[email protected]
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sonar.projectKey=gridsuite_commons-ui
2+
sonar.organization=gridsuite
3+
sonar.javascript.lcov.reportPaths=./coverage/lcov.info

0 commit comments

Comments
 (0)