Skip to content

Commit 6457801

Browse files
chore: improve sonar analysis in build CI (#578)
Signed-off-by: Joris Mancini <[email protected]>
1 parent 2a49981 commit 6457801

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: CI
2-
on: [push]
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
pull_request:
37

48
jobs:
59
license-headers:
@@ -25,6 +29,7 @@ jobs:
2529
- name: Checkout sources
2630
uses: actions/checkout@v2
2731
with:
32+
fetch-depth: 0
2833
persist-credentials: false
2934

3035
- name: FixForNodeWarnings

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
sonar.projectKey=gridsuite_commons-ui
22
sonar.organization=gridsuite
3+
sonar.projectBaseDir=src
34
sonar.javascript.lcov.reportPaths=./coverage/lcov.info

0 commit comments

Comments
 (0)