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: Download and install the SonarScanner
122 SONAR_SCANNER_VERSION: 4.6.2.2472
124 curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${{ env.SONAR_SCANNER_VERSION }}-linux.zip
125 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
126 echo \\"$HOME/.sonar/sonar-scanner-\${{ env.SONAR_SCANNER_VERSION }}-linux/bin\\" >> $GITHUB_PATH
128 - name: SonarQube analysis
130 sonar-scanner --define sonar.cfamily.build-wrapper-output=bw-output
132 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
133 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
137 className="abs-width-800"
140 onClick={[MockFunction]}
145 exports[`should render correctly for mac: branches enabled 1`] = `
150 "breadcrumbs": Array [],
154 "qualityGate": Object {
159 "qualityProfiles": Array [
173 onboarding.build.other.os
179 optionLabelKey="onboarding.build.other.os"
190 yamlFileName=".github/workflows/build.yml"
191 yamlTemplate="name: Build
195 - master # or the name of your main branch
197 types: [opened, synchronize, reopened]
201 runs-on: <image ready for your build toolchain>
203 - name: Checkout code
204 uses: actions/checkout@v2
208 - name: Download and install the build wrapper
211 curl -sSLo $HOME/.sonar/build-wrapper-macosx-x86.zip \${{ secrets.SONAR_HOST_URL }}/static/cpp/build-wrapper-macosx-x86.zip
212 unzip -o $HOME/.sonar/build-wrapper-macosx-x86.zip -d $HOME/.sonar/
214 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
216 - name: Download and install the SonarScanner
218 curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-macosx.zip
219 unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
221 - name: Build and analyse the project
223 # Potential improvement : add these paths to the PATH env var.
224 $HOME/.sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
225 $HOME/.sonar/sonar-scanner-4.6.2.2472-macosx/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output
227 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
228 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
232 className="abs-width-800"
235 onClick={[MockFunction]}
240 exports[`should render correctly for win: branches enabled 1`] = `
245 "breadcrumbs": Array [],
249 "qualityGate": Object {
254 "qualityProfiles": Array [
268 onboarding.build.other.os
274 optionLabelKey="onboarding.build.other.os"
285 yamlFileName=".github/workflows/build.yml"
286 yamlTemplate="name: Build
290 - master # or the name of your main branch
292 types: [opened, synchronize, reopened]
296 runs-on: <image ready for your build toolchain>
298 - name: Checkout code
299 uses: actions/checkout@v2
303 - name: Download and install the build wrapper
306 $path = \\"$HOME/.sonar/build-wrapper-win-x86.zip\\"
308 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
309 (New-Object System.Net.WebClient).DownloadFile(\\"\${{ secrets.SONAR_HOST_URL }}/static/cpp/build-wrapper-win-x86.zip\\", $path)
310 Add-Type -AssemblyName System.IO.Compression.FileSystem
311 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, \\"$HOME/.sonar\\")
313 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
315 - name: Download and install the SonarScanner
318 $path = \\"$HOME/.sonar/sonar-scanner-cli-4.6.2.2472-windows.zip\\"
319 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
320 (New-Object System.Net.WebClient).DownloadFile(\\"https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-windows.zip\\", $path)
321 Add-Type -AssemblyName System.IO.Compression.FileSystem
322 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, \\"$HOME/.sonar\\")
324 - name: Build and analyse the project
327 $env:Path += \\";$HOME/.sonar/build-wrapper-win-x86;$HOME/.sonar/sonar-scanner-4.6.2.2472-windows/bin\\"
328 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
329 sonar-scanner.bat \\"-Dsonar.cfamily.build-wrapper-output=bw-output\\"
331 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
332 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
336 className="abs-width-800"
339 onClick={[MockFunction]}