1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly 1`] = `
6 className="abs-width-600"
9 defaultMessage="onboarding.tutorial.with.yaml.gradle"
10 id="onboarding.tutorial.with.yaml.gradle"
13 "gradle": <React.Fragment>
20 copyValue="build.gradle"
33 id \\"org.sonarqube\\" version \\"3.3\\"
38 property \\"sonar.projectKey\\", \\"my-project\\"
44 yamlFileName=".github/workflows/build.yml"
45 yamlTemplate="name: Build
49 - master # or the name of your main branch
51 types: [opened, synchronize, reopened]
55 runs-on: ubuntu-latest
57 - uses: actions/checkout@v2
59 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
61 uses: actions/setup-java@v1
64 - name: Cache SonarQube packages
65 uses: actions/cache@v1
68 key: \${{ runner.os }}-sonar
69 restore-keys: \${{ runner.os }}-sonar
70 - name: Cache Gradle packages
71 uses: actions/cache@v1
73 path: ~/.gradle/caches
74 key: \${{ runner.os }}-gradle-\${{ hashFiles('**/*.gradle') }}
75 restore-keys: \${{ runner.os }}-gradle
76 - name: Build and analyze
78 GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
79 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
80 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
81 run: ./gradlew build sonarqube --info"
84 onClick={[MockFunction]}
89 exports[`should render correctly: without branch enabled 1`] = `
92 className="abs-width-600"
95 defaultMessage="onboarding.tutorial.with.yaml.gradle"
96 id="onboarding.tutorial.with.yaml.gradle"
99 "gradle": <React.Fragment>
106 copyValue="build.gradle"
119 id \\"org.sonarqube\\" version \\"3.3\\"
124 property \\"sonar.projectKey\\", \\"my-project\\"
130 yamlFileName=".github/workflows/build.yml"
131 yamlTemplate="name: Build
135 - master # or the name of your main branch
140 runs-on: ubuntu-latest
142 - uses: actions/checkout@v2
144 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
145 - name: Set up JDK 11
146 uses: actions/setup-java@v1
149 - name: Cache SonarQube packages
150 uses: actions/cache@v1
153 key: \${{ runner.os }}-sonar
154 restore-keys: \${{ runner.os }}-sonar
155 - name: Cache Gradle packages
156 uses: actions/cache@v1
158 path: ~/.gradle/caches
159 key: \${{ runner.os }}-gradle-\${{ hashFiles('**/*.gradle') }}
160 restore-keys: \${{ runner.os }}-gradle
161 - name: Build and analyze
163 GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
164 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
165 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
166 run: ./gradlew build sonarqube --info"
169 onClick={[MockFunction]}