1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly 1`] = `
6 yamlFileName=".github/workflows/build.yml"
7 yamlTemplate="name: Build
14 types: [opened, synchronize, reopened]
19 runs-on: ubuntu-latest
21 - uses: actions/checkout@v2
23 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
25 uses: actions/setup-java@v1
28 - name: Cache SonarQube packages
29 uses: actions/cache@v1
32 key: \${{ runner.os }}-sonar
33 restore-keys: \${{ runner.os }}-sonar
34 - name: Cache Maven packages
35 uses: actions/cache@v1
38 key: \${{ runner.os }}-m2-\${{ hashFiles('**/pom.xml') }}
39 restore-keys: \${{ runner.os }}-m2
40 - name: Build and analyze
42 GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
43 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
44 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
45 run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=my-project"
48 onClick={[MockFunction]}
53 exports[`should render correctly: without branch enabled 1`] = `
56 yamlFileName=".github/workflows/build.yml"
57 yamlTemplate="name: Build
68 runs-on: ubuntu-latest
70 - uses: actions/checkout@v2
72 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
74 uses: actions/setup-java@v1
77 - name: Cache SonarQube packages
78 uses: actions/cache@v1
81 key: \${{ runner.os }}-sonar
82 restore-keys: \${{ runner.os }}-sonar
83 - name: Cache Maven packages
84 uses: actions/cache@v1
87 key: \${{ runner.os }}-m2-\${{ hashFiles('**/pom.xml') }}
88 restore-keys: \${{ runner.os }}-m2
89 - name: Build and analyze
91 GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
92 SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
93 SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
94 run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=my-project"
97 onClick={[MockFunction]}