-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Joris Mancini <[email protected]>
- Loading branch information
1 parent
d6bc20b
commit bf2bd73
Showing
5 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,7 @@ module.exports = { | |
rules: { | ||
'prettier/prettier': 'warn', | ||
}, | ||
ignorePatterns: [ | ||
'coverage', | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,6 @@ header: | |
- '**/*.svg' | ||
- '**/*.css' | ||
- '**/*.conf' | ||
- '**/*.properties' | ||
|
||
comment: on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
name: CI | ||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
tags: | ||
- 'v[0-9]*' | ||
pull_request: | ||
|
||
jobs: | ||
license-headers: | ||
|
@@ -24,6 +30,7 @@ jobs: | |
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- name: FixForNodeWarnings | ||
|
@@ -35,5 +42,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/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sonar.projectKey=powsybl_powsybl-diagram-viewer | ||
sonar.organization=powsybl-ci-github | ||
sonar.projectBaseDir=src | ||
sonar.javascript.lcov.reportPaths=./coverage/lcov.info |