Skip to content

Commit 26b3019

Browse files
committed
analyze.yaml 스크립트 수정
1 parent 7d95155 commit 26b3019

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

.github/workflows/analyze.yaml

+9-16
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ on:
66
branches:
77
- main
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
10-
build:
11-
name: Build and analyze
14+
analyze:
1215
runs-on: ubuntu-latest
1316

1417
steps:
@@ -23,22 +26,12 @@ jobs:
2326
java-version: 21
2427
cache: 'gradle'
2528

26-
- name: Cache SonarQube packages
27-
uses: actions/cache@v4
28-
with:
29-
path: ~/.sonar/cache
30-
key: ${{ runner.os }}-sonar
31-
restore-keys: ${{ runner.os }}-sonar
32-
33-
- name: Cache Gradle packages
34-
uses: actions/cache@v4
35-
with:
36-
path: ~/.gradle/caches
37-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
38-
restore-keys: ${{ runner.os }}-gradle
29+
- name: Generate kover XML Report
30+
run: |
31+
./gradlew koverXmlReport --parallel
3932
4033
- name: Build and analyze
4134
env:
4235
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4336
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
44-
run: ./gradlew build sonar --info
37+
run: ./gradlew sonar --parallel

0 commit comments

Comments
 (0)