Skip to content

Commit

Permalink
자동 PR 리뷰를 위한 workflow 파일 추가 by f-lab
Browse files Browse the repository at this point in the history
  • Loading branch information
f-lab-bot committed Jan 3, 2024
1 parent e991b36 commit 5d498fb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/sonarcloud-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,23 @@ jobs:
if [ -f "build.gradle" ]; then
echo "$insert_string" > temp.gradle
cat build.gradle >> temp.gradle
echo "" >> temp.gradle
echo "sonarqube {" >> temp.gradle
echo " properties {" >> temp.gradle
echo " property 'sonar.java.binaries', '**'" >> temp.gradle
echo " }" >> temp.gradle
echo "}" >> temp.gradle
mv temp.gradle build.gradle
else
echo "$insert_string" > build.gradle
echo "" >> build.gradle
echo "sonarqube {" >> build.gradle
echo " properties {" >> build.gradle
echo " property 'sonar.java.binaries', '**'" >> build.gradle
echo " }" >> build.gradle
echo "}" >> build.gradle
fi
- name: Analyze
run: ./gradlew sonar -Dsonar.projectKey=${{ env.SONAR_PROJECT_KEY }} -Dsonar.organization=f-lab-edu-1 -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=${{ secrets.SECRET_SONARQUBE }} -Dsonar.gradle.skipCompile=true
Expand Down

0 comments on commit 5d498fb

Please sign in to comment.