Skip to content

Commit

Permalink
Update node-dev-deploy1.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalm committed Sep 12, 2021
1 parent f352a69 commit c15b4d6
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions node-dev-deploy1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
trigger:
- master
- dev

pool:
vmImage: ubuntu-latest
Expand All @@ -8,7 +8,7 @@ stages:
- stage: Tests
jobs:
- job:
displayName: 'Sonar Connection'
displayName: 'Tests and Sonar Quality Gate'
steps:
- task: SonarCloudPrepare@1
inputs:
Expand Down Expand Up @@ -80,4 +80,42 @@ stages:
testResultsFiles: 'junit.xml'
mergeTestResults: true
failTaskOnFailedTests: true
testRunTitle: 'Functional Test'
testRunTitle: 'Functional Test'
- stage: LoadTests
dependsOn:
- Tests
- Dev
jobs:
- job:
displayName: 'Load Tests'
steps:
- script: npm install
displayName: 'Load test'
- script: npm test
displayName: 'Load test'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'junit.xml'
mergeTestResults: true
failTaskOnFailedTests: true
testRunTitle: 'Load Test'
- stage: SecurityTests
dependsOn:
- Tests
- Dev
jobs:
- job:
displayName: 'Security Tests'
steps:
- script: npm install
displayName: 'Security test'
- script: npm test
displayName: 'Security test'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'junit.xml'
mergeTestResults: true
failTaskOnFailedTests: true
testRunTitle: 'Security Test'

0 comments on commit c15b4d6

Please sign in to comment.