-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from kakao-tech-campus-2nd-step3/feature/111-…
…test-coverage feat: 테스트 커버리지 측정 자동화
- Loading branch information
Showing
2 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ jobs: | |
- name: 빌드 테스트 수행 | ||
run: | | ||
chmod +x ./gradlew | ||
./gradlew clean build --build-cache --stacktrace | ||
./gradlew clean build jacocoTestReport --build-cache --stacktrace | ||
- name: 테스트 수행 결과 보고 | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
|
@@ -67,3 +67,19 @@ jobs: | |
with: | ||
report_paths: '**/build/test-results/test/TEST-*.xml' | ||
token: ${{ github.token }} | ||
|
||
- name: JaCoCo 테스트 커버리지 리포트 업로드 | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: jacoco-report | ||
path: '**/build/reports/jacoco/' | ||
|
||
- name: JaCoCo 테스트 커버리지 결과를 PR에 코멘트로 등록 | ||
uses: madrapps/[email protected] | ||
with: | ||
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml | ||
token: ${{ github.token }} | ||
min-coverage-overall: 70 | ||
min-coverage-changed-files: 70 | ||
title: '📊 테스트 커버리지 리포트' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters