Skip to content

Commit

Permalink
add sonarcloud to pull request yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
roshaanbajwa committed Dec 6, 2023
1 parent ef40d37 commit b79cde5
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,21 @@ jobs:

- name: Install dependencies
run: npm install


- task: SonarCloudPrepare@1
displayName: 'Prepare analysis on SonarCloud'
inputs:
SonarCloud: 'SonarCloud'
organization: 'nhsdigital'
scannerMode: 'CLI'
extraProperties: |
sonar.projectKey=nhsuk-frontend
sonar.exclusions=$(System.DefaultWorkingDirectory)/dependency-scan-results/**
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.coverage.exclusions=**/*.config.js,**/coverage/**
sonar.dependencyCheck.htmlReportPath=$(System.DefaultWorkingDirectory)/dependency-scan-results/dependency-check-report.html
sonar.language=js
- name: Run linting
run: npm run lint

Expand Down

0 comments on commit b79cde5

Please sign in to comment.