Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
node_modules
coverage
dist
/common
generators
debug
!src/generators
.vscode/settings.json
/node_modules
/coverage
/dist
/common
/generators
/debug
/test_results
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@
"copy-data-template": "xcopy \"src\\generators\\data\\templates\" \"generators\\data\\templates\" /I /S /y",
"copy-powerbi-template": "xcopy \"src\\generators\\powerbi\\templates\" \"generators\\powerbi\\templates\" /I /S /y",
"clean-debug": "del /S /q debug\\*",
"lint": "eslint .eslintrc.js ./src"
"lint": "eslint .eslintrc.js ./src --fix -o test_results/analysis/eslint.json -f json"
}
}
19 changes: 19 additions & 0 deletions pipelines/templates/build-and-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,37 @@ jobs:
inputs:
verbose: true

- task: SonarCloudPrepare@1
displayName: Prepare SonarCloud
inputs:
SonarCloud: "SonarCloud"
organization: "capgemini-1"
scannerMode: "CLI"
configMode: "file"
extraProperties: |
soner.projectVersion=$(GitVersion.SemVer)

- task: Npm@1
displayName: Lint Package
inputs:
command: custom
customCommand: run lint
continueOnError: true

- task: Npm@1
displayName: Build Package
inputs:
command: custom
customCommand: run build

- task: SonarCloudAnalyze@1
displayName: Analyse with SonarCloud

- task: SonarCloudPublish@1
displayName: Publish SonarCloud results
inputs:
pollingTimeoutSec: "300"

- task: WhiteSource Bolt@20
displayName: Detect security and licence issues
inputs:
Expand Down
7 changes: 7 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sonar.organization=capgemini-1
sonar.projectKey=Capgemini_powerapps-project-template
sonar.projectName=powerapps-project-template
sonar.sources=src/
sonar.tests=_tests_/
sonar.typescript.tsconfigPath=tsconfig.json
sonar.eslint.reportPaths=test_results/analysis/eslint.json