-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andre Vieira
committed
Mar 19, 2024
1 parent
863c1c5
commit 80fd89a
Showing
1 changed file
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
name: SonarQube | ||
#name: SonarQube | ||
|
||
|
||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
#on: | ||
# push: | ||
# branches: | ||
# - master | ||
|
||
|
||
|
||
jobs: | ||
sonarqube: | ||
name: SonarQube | ||
runs-on: ubuntu-22.04 | ||
#jobs: | ||
# sonarqube: | ||
# name: SonarQube | ||
# runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 0 | ||
|
||
- name: SonarQube file | ||
run: | | ||
echo "sonar.projectKey=${{ github.event.repository.name }}" > sonar-project.properties | ||
# - name: SonarQube file | ||
# run: | | ||
# echo "sonar.projectKey=${{ github.event.repository.name }}" > sonar-project.properties | ||
|
||
- name: SonarQube Scan | ||
uses: sonarsource/sonarqube-scan-action@v2 | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | ||
# - name: SonarQube Scan | ||
# uses: sonarsource/sonarqube-scan-action@v2 | ||
# env: | ||
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
# SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} |