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.4.0.2513\\"
38 property \\"sonar.projectKey\\", \\"my-project\\"
44 yamlFileName=".github/workflows/build.yml"
45 yamlTemplate="name: Build
52 types: [opened, synchronize, reopened]
57 runs-on: ubuntu-latest
59 - uses: actions/checkout@v2
61 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
63 uses: actions/setup-java@v1
66 - name: Cache SonarQube packages
67 uses: actions/cache@v1
70 key: \${{ runner.os }}-sonar
71 restore-keys: \${{ runner.os }}-sonar
72 - name: Cache Gradle packages
73 uses: actions/cache@v1
75 path: ~/.gradle/caches
76 key: \${{ runner.os }}-gradle-\${{ hashFiles('**/*.gradle') }}
77 restore-keys: \${{ runner.os }}-gradle
78 - name: Build and analyze
80 GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
81 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
82 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
83 run: ./gradlew build sonarqube --info"
86 onClick={[MockFunction]}
91 exports[`should render correctly: without branch enabled 1`] = `
94 className="abs-width-600"
97 defaultMessage="onboarding.tutorial.with.yaml.gradle"
98 id="onboarding.tutorial.with.yaml.gradle"
101 "gradle": <React.Fragment>
108 copyValue="build.gradle"
121 id \\"org.sonarqube\\" version \\"3.4.0.2513\\"
126 property \\"sonar.projectKey\\", \\"my-project\\"
132 yamlFileName=".github/workflows/build.yml"
133 yamlTemplate="name: Build
144 runs-on: ubuntu-latest
146 - uses: actions/checkout@v2
148 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
149 - name: Set up JDK 11
150 uses: actions/setup-java@v1
153 - name: Cache SonarQube packages
154 uses: actions/cache@v1
157 key: \${{ runner.os }}-sonar
158 restore-keys: \${{ runner.os }}-sonar
159 - name: Cache Gradle packages
160 uses: actions/cache@v1
162 path: ~/.gradle/caches
163 key: \${{ runner.os }}-gradle-\${{ hashFiles('**/*.gradle') }}
164 restore-keys: \${{ runner.os }}-gradle
165 - name: Build and analyze
167 GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
168 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
169 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
170 run: ./gradlew build sonarqube --info"
173 onClick={[MockFunction]}