Skip to content

[Chore] Jacoco Coverage Test Action 추가 #3

[Chore] Jacoco Coverage Test Action 추가

[Chore] Jacoco Coverage Test Action 추가 #3

Workflow file for this run

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