Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anita-stanisz-sonarsource authored Dec 3, 2024
1 parent 16c9d8a commit 42cbc02
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
- name: Build and analyze
env:
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
SONAR_PROJECT_KEY: "anita-stanisz-sonarsource_monorepo_test_project1"
SONAR_ORGANIZTION: "anita-stanisz-sonarsource"
with:
projectBaseDir: project1/
run: ./gradlew build :project1:sonar --info

sonarcloudScan2:
name: SonarCloudScan2
Expand All @@ -32,10 +28,8 @@ jobs:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
- name: Build and analyze
env:
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
SONAR_PROJECT_KEY: "anita-stanisz-sonarsource_monorepo_test_project2"
SONAR_ORGANIZTION: "anita-stanisz-sonarsource"
with:
projectBaseDir: project2/
run: ./gradlew build :project2:sonar --info

0 comments on commit 42cbc02

Please sign in to comment.