diff --git a/.github/deprecated/sonarqube.yaml b/.github/deprecated/sonarqube.yaml new file mode 100644 index 0000000..80ce3a5 --- /dev/null +++ b/.github/deprecated/sonarqube.yaml @@ -0,0 +1,33 @@ +name: SonarQube + + + +on: + push: + branches: + - master + + + +jobs: + sonarqube: + name: SonarQube + runs-on: + #- self-hosted + #- small + - ubuntu-22.04 + + 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 Scan + uses: sonarsource/sonarqube-scan-action@v2.0.1 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml deleted file mode 100644 index 4b560c2..0000000 --- a/.github/workflows/sonarqube.yaml +++ /dev/null @@ -1,33 +0,0 @@ -#name: SonarQube - - - -#on: -# push: -# branches: -# - master - - - -#jobs: -# sonarqube: -# name: SonarQube -# runs-on: -# #- self-hosted -# #- small -# - ubuntu-22.04 - -# 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 Scan -# uses: sonarsource/sonarqube-scan-action@v2.0.1 -# env: -# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} -# SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}