[Chore] Jacoco Coverage Test Action 추가 #3
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
name: Jacoco Coverage Test | |
on: | |
pull_request: | |
branches: | |
["main"] | |
permissions: | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Test with Gradle | |
run: ./gradlew build --info test | |
- name: Jacoco Test Coverage Report | |
uses: madrapps/jacoco-report@v1.6.1 | |
with: | |
title: 'Jacoco Test Coverage Report' | |
paths: ${{ github.workspace }}/build/jacoco/jacocoTestReport.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: 80 | |
min-coverage-changed-files: 80 |