Feat/create test #24
Workflow file for this run
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: test coverage | |
on: | |
pull_request: | |
branches: | |
- 'dev' | |
paths: | |
- '**.java' | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
test-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Test with Gradle | |
run: ./gradlew test | |
- name: Add coverage to PR | |
id: jacoco | |
uses: madrapps/[email protected] | |
with: | |
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
title: 📊 테스트 커버리지 결과 | |
min-coverage-overall: 80 | |
min-coverage-changed-files: 80 |