Skip to content

Commit

Permalink
add analyze step
Browse files Browse the repository at this point in the history
  • Loading branch information
roshaanbajwa committed Dec 6, 2023
1 parent b79cde5 commit 30399f8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ jobs:
sonar.dependencyCheck.htmlReportPath=$(System.DefaultWorkingDirectory)/dependency-scan-results/dependency-check-report.html
sonar.language=js
- task: SonarCloudAnalyze@1
displayName: 'Run SonarCloud Code Analysis'

- task: SonarCloudPublish@1
displayName: 'Publish Quality Gate Result'
inputs:
pollingTimeoutSec: '300'

- task: sonarcloud-buildbreaker@2
displayName: "Break the build if the quality gate fails"
inputs:
SonarCloud: 'SonarCloud'
organization: 'nhsdigital'

- name: Run linting
run: npm run lint

Expand Down

0 comments on commit 30399f8

Please sign in to comment.