Skip to content

Commit

Permalink
RAC-306 deploy : sonarcloud workflow μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
ywj9811 committed Feb 1, 2024
1 parent 93ec48d commit 70d1a2b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/SonarCloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
env:
working-directory: ./
APPLICATION: ${{ secrets.APPLICATION }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
Expand All @@ -36,15 +41,9 @@ jobs:
run: chmod +x gradlew
working-directory: ${{ env.working-directory }}

- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Build and analyze
run: ./gradlew build jacocoTestReport sonar --info
run: |
./gradlew build jacocoTestReport sonar --info
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 70d1a2b

Please sign in to comment.