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: windows-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 SonarQube scanner
35 id: cache-sonar-scanner
36 uses: actions/cache@v1
38 path: .\\.sonar\\scanner
39 key: \${{ runner.os }}-sonar-scanner
40 restore-keys: \${{ runner.os }}-sonar-scanner
41 - name: Install SonarQube scanner
42 if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
45 New-Item -Path .\\.sonar\\scanner -ItemType Directory
46 dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner
47 - name: Build and analyze
49 GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
52 .\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"my-project" /d:sonar.login="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}"
54 .\\.sonar\\scanner\\dotnet-sonarscanner end /d:sonar.login="\${{ secrets.SONAR_TOKEN }}""
57 onClick={[MockFunction]}
62 exports[`should render correctly: without branch enabled 1`] = `
65 yamlFileName=".github/workflows/build.yml"
66 yamlTemplate="name: Build
77 runs-on: windows-latest
79 - uses: actions/checkout@v2
81 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
83 uses: actions/setup-java@v1
86 - name: Cache SonarQube packages
87 uses: actions/cache@v1
90 key: \${{ runner.os }}-sonar
91 restore-keys: \${{ runner.os }}-sonar
92 - name: Cache SonarQube scanner
93 id: cache-sonar-scanner
94 uses: actions/cache@v1
96 path: .\\.sonar\\scanner
97 key: \${{ runner.os }}-sonar-scanner
98 restore-keys: \${{ runner.os }}-sonar-scanner
99 - name: Install SonarQube scanner
100 if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
103 New-Item -Path .\\.sonar\\scanner -ItemType Directory
104 dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner
105 - name: Build and analyze
107 GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
110 .\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"my-project" /d:sonar.login="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}"
112 .\\.sonar\\scanner\\dotnet-sonarscanner end /d:sonar.login="\${{ secrets.SONAR_TOKEN }}""
115 onClick={[MockFunction]}