From 30399f8349311265e5c0c9f70229b63000e8a1a1 Mon Sep 17 00:00:00 2001 From: roshaanbajwa Date: Wed, 6 Dec 2023 11:15:19 +0000 Subject: [PATCH] add analyze step --- .github/workflows/pull-request.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index dbd37d984..82e47df32 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -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