File tree Expand file tree Collapse file tree 1 file changed +9
-19
lines changed
Expand file tree Collapse file tree 1 file changed +9
-19
lines changed Original file line number Diff line number Diff line change 2727 with :
2828 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
2929
30- - name : Install Prerequisites
31- run : |
32- apt-get update
33- apt-get install -y --no-install-recommends \
34- curl \
35- unzip
36-
37- - name : Install Build Wrapper
38- uses : SonarSource/sonarqube-scan-action/install-build-wrapper@v4
39-
4030 - name : Install CMake
4131 uses : lukka/get-cmake@v3.30.5
4232 with :
@@ -90,18 +80,18 @@ jobs:
9080 retention-days : 1 # This sets the artifact TTL to 1 day (minimum is 1 day)
9181 overwrite : true
9282
93- - name : Run sonar-scanner
83+ - name : SonarQube Scan
84+ uses : SonarSource/sonarqube-scan-action@<action version>
9485 if : ${{ !cancelled() }}
9586 env :
96- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9787 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
98- run : |
99- sonar-scanner \
100- --define sonar.projectKey=Fastcode_NUClear \
101- --define sonar.organization=fastcode \
102- --define sonar.sources=src \
103- --define sonar.tests=tests \
104- --define sonar.cfamily.compile-commands=build/compile_commands.json \
88+ with :
89+ args : >
90+ --define sonar.projectKey=Fastcode_NUClear
91+ --define sonar.organization=fastcode
92+ --define sonar.sources=src
93+ --define sonar.tests=tests
94+ --define sonar.cfamily.compile-commands=build/compile_commands.json
10595 --define sonar.cfamily.llvm-cov.reportPath=build/reports/coverage.txt
10696
10797 - name : Upload Traces
You can’t perform that action at this time.
0 commit comments