Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
martindufresne-orc committed May 13, 2024
1 parent e090cd9 commit 7924677
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .az.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ variables:
- group: npm publish token

steps:
- task: SonarCloudPrepare@1
inputs:
SonarCloud: 'SonarCloud'
organization: 'orckestra001'
scannerMode: 'CLI' # 'MSBuild' | 'Other' | 'CLI'. Required. Choose the way to run the analysis. Default: MSBuild.
#configMode: 'file' # 'file' | 'manual'. Required when scannerMode = CLI. Mode. Default: file.
#configFile: 'sonar-project.properties' # string. Optional. Use when scannerMode = CLI && configMode = file. Settings File. Default: sonar-project.properties.

- task: NodeTool@0
displayName: 'Use Node 18.x'
inputs:
Expand Down Expand Up @@ -110,3 +118,9 @@ steps:
customCommand: 'publish --tag $(NpmTag)'
env:
NPM_TOKEN: $(NpmPublishToken)

- task: SonarCloudAnalyze@1

- task: SonarCloudPublish@1
inputs:
pollingTimeoutSec: '300'
14 changes: 14 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sonar.projectKey=orckestra001_orc-shared
sonar.organization=orckestra001

# This is the name and version displayed in the SonarCloud UI.
sonar.projectName=orc-shared
#sonar.projectVersion=1.0


# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
sonar.exclusions=**/*.test.js

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

0 comments on commit 7924677

Please sign in to comment.