File tree Expand file tree Collapse file tree 5 files changed +47
-0
lines changed
Expand file tree Collapse file tree 5 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1515 with :
1616 install_java : true
1717
18+ sonar_scan :
19+ uses : ./.github/workflows/sonar.yml
20+ needs : quality_checks
21+
1822 get_commit_id :
1923 runs-on : ubuntu-latest
2024 outputs :
Original file line number Diff line number Diff line change 1515 with :
1616 install_java : true
1717
18+ sonar_scan :
19+ uses : ./.github/workflows/sonar.yml
20+ needs : quality_checks
21+
1822 pr_title_format_check :
1923 uses : ./.github/workflows/pr_title_check.yml
2024
Original file line number Diff line number Diff line change 1414 with :
1515 install_java : true
1616
17+ sonar_scan :
18+ uses : ./.github/workflows/sonar.yml
19+ needs : quality_checks
20+
1721 get_commit_id :
1822 runs-on : ubuntu-latest
1923 outputs :
Original file line number Diff line number Diff line change 1+ name : Run SonarCloud scan
2+
3+ on :
4+ workflow_call :
5+
6+ env :
7+ BRANCH_NAME : ${{ github.event.ref.BRANCH_NAME }}
8+
9+ jobs :
10+ run_sonar_scan :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : run tests and Sonar scan
14+ env :
15+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
16+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
17+ run : |
18+ # shellcheck source=/dev/null
19+ . ~/.asdf/plugins/java/set-java-home.bash
20+ make download-dependencies
21+ mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=NHSDigital_eps-FHIR-validator-lambda
Original file line number Diff line number Diff line change 1+ sonar.organization =nhsdigital
2+ sonar.projectKey =NHSDigital_eps-FHIR-validator-lambda
3+ sonar.sources =src/main
4+ sonar.tests =src/test
5+ sonar.java.binaries =target/classes
6+ sonar.java.test.binaries =target/test-classes
7+
8+ sonar.host.url =https://sonarcloud.io
9+
10+ sonar.coverage.exclusions =src/test/**
11+ sonar.cpd.exclusions =src/test/**
12+
13+ sonar.java.coveragePlugin =jacoco
14+ sonar.coverage.jacoco.xmlReportPaths =target/site/jacoco/jacoco.xml
You can’t perform that action at this time.
0 commit comments