From 70d1a2ba9c9670e061007790bb13c8dbd4ace28f Mon Sep 17 00:00:00 2001 From: yang Date: Fri, 2 Feb 2024 01:01:31 +0900 Subject: [PATCH] =?UTF-8?q?RAC-306=20deploy=20:=20sonarcloud=20workflow=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/SonarCloud.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/SonarCloud.yml b/.github/workflows/SonarCloud.yml index 18f359de..ed786894 100644 --- a/.github/workflows/SonarCloud.yml +++ b/.github/workflows/SonarCloud.yml @@ -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: @@ -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 }}