dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner | dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner | ||||
- name: Build and analyze | - name: Build and analyze | ||||
env: | env: | ||||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||||
shell: powershell | shell: powershell | ||||
run: | | run: | | ||||
.\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"my-project" /d:sonar.token="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}" | .\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"my-project" /d:sonar.token="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}" | ||||
restore-keys: \${{ runner.os }}-gradle | restore-keys: \${{ runner.os }}-gradle | ||||
- name: Build and analyze | - name: Build and analyze | ||||
env: | env: | ||||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||||
SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | ||||
SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | ||||
run: ./gradlew build sonar --info" | run: ./gradlew build sonar --info" | ||||
restore-keys: \${{ runner.os }}-m2 | restore-keys: \${{ runner.os }}-m2 | ||||
- name: Build and analyze | - name: Build and analyze | ||||
env: | env: | ||||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||||
SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | ||||
SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | ||||
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'" | run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'" |
dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner | dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner | ||||
- name: Build and analyze | - name: Build and analyze | ||||
env: | env: | ||||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||||
shell: powershell | shell: powershell | ||||
run: | | run: | | ||||
.\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"${projectKey}" /d:sonar.token="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}" | .\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"${projectKey}" /d:sonar.token="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}" |
restore-keys: \${{ runner.os }}-gradle | restore-keys: \${{ runner.os }}-gradle | ||||
- name: Build and analyze | - name: Build and analyze | ||||
env: | env: | ||||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||||
SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | ||||
SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | ||||
run: ./gradlew build sonar --info`; | run: ./gradlew build sonar --info`; |
restore-keys: \${{ runner.os }}-m2 | restore-keys: \${{ runner.os }}-m2 | ||||
- name: Build and analyze | - name: Build and analyze | ||||
env: | env: | ||||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||||
SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | ||||
SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | ||||
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=${projectKey} -Dsonar.projectName='${projectName}'`; | run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=${projectKey} -Dsonar.projectName='${projectName}'`; |