Skip to content

Commit

Permalink
config: 테스트 커버리 체크 결과 확인 코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
TinyFrogs committed Apr 29, 2024
1 parent 3220458 commit 6d1f5d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/gradleCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,23 @@ jobs:
echo "${{ secrets.YML_CI }}" > ./application-API-KEY.properties
shell: bash


- name: Run chmod to make gradlew executable
run: chmod +x ./gradlew

# gradle build
- name: Build with Gradle
run: ./gradlew clean build -x test

- name: Test with JaCoCo
run: ./gradlew build jacocoTestReport

- name: Upload JaCoCo Coverage Report
uses: actions/upload-artifact@v3
uses: madrapps/[email protected]
with:
name: jacoco-report
path: build/reports/jacoco/test/html/
path: leaguehub-backend/build/reports/jacoco/test/html/jacocoTestReport.xml
token: ${{ secrets.GIT_TOKEN }}
title: "테스트 커버리지 측정"



3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ test {
}
jacocoTestReport {
dependsOn test
reports{
xml.required = true
}
afterEvaluate {

classDirectories.setFrom(files(classDirectories.files.collect {
Expand Down

0 comments on commit 6d1f5d3

Please sign in to comment.