1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly 1`] = `
8 "breadcrumbs": Array [],
12 "qualityGate": Object {
17 "qualityProfiles": Array [
31 onboarding.build.other.os
36 optionLabelKey="onboarding.build.other.os"
49 exports[`should render correctly for linux: branches disabled 1`] = `
54 "breadcrumbs": Array [],
58 "qualityGate": Object {
63 "qualityProfiles": Array [
77 onboarding.build.other.os
83 optionLabelKey="onboarding.build.other.os"
94 yamlFileName=".github/workflows/build.yml"
95 yamlTemplate="name: Build
99 - master # or the name of your main branch
104 runs-on: <image ready for your build toolchain>
106 - name: Checkout code
107 uses: actions/checkout@v2
111 - name: Download and install the build wrapper, build the project
114 curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${{ secrets.SONAR_HOST_URL }}/static/cpp/build-wrapper-linux-x86.zip
115 unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
116 $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
118 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
120 - name: SonarQube analysis
121 uses: SonarSource/sonarqube-scan-action@v1.0.0
123 args: -Dsonar.cfamily.build-wrapper-output=bw-output
125 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
126 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
130 className="abs-width-800"
133 onClick={[MockFunction]}
138 exports[`should render correctly for mac: branches enabled 1`] = `
143 "breadcrumbs": Array [],
147 "qualityGate": Object {
152 "qualityProfiles": Array [
166 onboarding.build.other.os
172 optionLabelKey="onboarding.build.other.os"
183 yamlFileName=".github/workflows/build.yml"
184 yamlTemplate="name: Build
188 - master # or the name of your main branch
190 types: [opened, synchronize, reopened]
194 runs-on: <image ready for your build toolchain>
196 - name: Checkout code
197 uses: actions/checkout@v2
201 - name: Download and install the build wrapper
204 curl -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip \${{ secrets.SONAR_HOST_URL }}/static/cpp/build-wrapper-macosx-x86.zip
205 unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
207 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
209 - name: Download and install the SonarScanner
211 curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-macosx.zip
212 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
214 - name: Build and analyse the project
216 # Potential improvement : add these paths to the PATH env var.
217 $HOME/.sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
218 $HOME/.sonar/sonar-scanner-4.6.2.2472-macosx/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output
220 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
221 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
225 className="abs-width-800"
228 onClick={[MockFunction]}
233 exports[`should render correctly for win: branches enabled 1`] = `
238 "breadcrumbs": Array [],
242 "qualityGate": Object {
247 "qualityProfiles": Array [
261 onboarding.build.other.os
267 optionLabelKey="onboarding.build.other.os"
278 yamlFileName=".github/workflows/build.yml"
279 yamlTemplate="name: Build
283 - master # or the name of your main branch
285 types: [opened, synchronize, reopened]
289 runs-on: <image ready for your build toolchain>
291 - name: Checkout code
292 uses: actions/checkout@v2
296 - name: Download and install the build wrapper
299 $path = \\"$HOME/.sonar/build-wrapper-win-x86.zip\\"
301 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
302 (New-Object System.Net.WebClient).DownloadFile(\\"\${{ secrets.SONAR_HOST_URL }}/static/cpp/build-wrapper-win-x86.zip\\", $path)
303 Add-Type -AssemblyName System.IO.Compression.FileSystem
304 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, \\"$HOME/.sonar\\")
306 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
308 - name: Download and install the SonarScanner
311 $path = \\"$HOME/.sonar/sonar-scanner-cli-4.6.2.2472-windows.zip\\"
312 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
313 (New-Object System.Net.WebClient).DownloadFile(\\"https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-windows.zip\\", $path)
314 Add-Type -AssemblyName System.IO.Compression.FileSystem
315 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, \\"$HOME/.sonar\\")
317 - name: Build and analyse the project
320 $env:Path += \\";$HOME/.sonar/build-wrapper-win-x86;$HOME/.sonar/sonar-scanner-4.6.2.2472-windows/bin\\"
321 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
322 sonar-scanner.bat \\"-Dsonar.cfamily.build-wrapper-output=bw-output\\"
324 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
325 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
329 className="abs-width-800"
332 onClick={[MockFunction]}