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.5.0.2730"
38 property "sonar.projectKey", "my-project"
39 property "sonar.projectName", "MyProject"
45 yamlFileName=".github/workflows/build.yml"
46 yamlTemplate="name: Build
53 types: [opened, synchronize, reopened]
58 runs-on: ubuntu-latest
60 - uses: actions/checkout@v2
62 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
64 uses: actions/setup-java@v1
67 - name: Cache SonarQube packages
68 uses: actions/cache@v1
71 key: \${{ runner.os }}-sonar
72 restore-keys: \${{ runner.os }}-sonar
73 - name: Cache Gradle packages
74 uses: actions/cache@v1
76 path: ~/.gradle/caches
77 key: \${{ runner.os }}-gradle-\${{ hashFiles('**/*.gradle') }}
78 restore-keys: \${{ runner.os }}-gradle
79 - name: Build and analyze
81 GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
82 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
83 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
84 run: ./gradlew build sonar --info"
87 onClick={[MockFunction]}
92 exports[`should render correctly: without branch enabled 1`] = `
95 className="abs-width-600"
98 defaultMessage="onboarding.tutorial.with.yaml.gradle"
99 id="onboarding.tutorial.with.yaml.gradle"
102 "gradle": <React.Fragment>
109 copyValue="build.gradle"
122 id "org.sonarqube" version "3.5.0.2730"
127 property "sonar.projectKey", "my-project"
128 property "sonar.projectName", "MyProject"
134 yamlFileName=".github/workflows/build.yml"
135 yamlTemplate="name: Build
146 runs-on: ubuntu-latest
148 - uses: actions/checkout@v2
150 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
151 - name: Set up JDK 11
152 uses: actions/setup-java@v1
155 - name: Cache SonarQube packages
156 uses: actions/cache@v1
159 key: \${{ runner.os }}-sonar
160 restore-keys: \${{ runner.os }}-sonar
161 - name: Cache Gradle packages
162 uses: actions/cache@v1
164 path: ~/.gradle/caches
165 key: \${{ runner.os }}-gradle-\${{ hashFiles('**/*.gradle') }}
166 restore-keys: \${{ runner.os }}-gradle
167 - name: Build and analyze
169 GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
170 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
171 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
172 run: ./gradlew build sonar --info"
175 onClick={[MockFunction]}