docs: README.md 수정 #67
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: Java CI with Gradle | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
checks: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 체크아웃 | |
uses: actions/checkout@v4 | |
- name: JDK 17 설치 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'corretto' | |
- name: 빌드 권한 부여 | |
run: chmod +x gradlew | |
- name: 프로젝트 빌드 | |
run: ./gradlew clean build | |
- name: 자코코 리포트 작성 | |
uses: madrapps/[email protected] | |
with: | |
title: 📊 Jacoco Test Coverage | |
paths: ${{ github.workspace }}/**/build/reports/jacoco/test/jacocoTestReport.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: 0 | |
min-coverage-changed-files: 0 | |
- name: 테스트 리포트 작성 | |
uses: mikepenz/action-junit-report@v4 | |
with: | |
report_paths: '**/build/test-results/test/TEST-*.xml' | |
- name: 디스코드 알림 | |
uses: tsickert/[email protected] | |
if: success() | |
with: | |
webhook-url: ${{ secrets.WEBHOOK_URL }} | |
content: ":love_letter: 새로운 PR이 날아왔습니다 ~ :love_letter:\n:link: 리뷰하러 가기: ${{ github.event.pull_request.html_url }}" |