-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.33 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
pull_request:
branches: [ "develop" ]
permissions: write-all
jobs:
CI:
runs-on: ubuntu-latest
# 작업 실행단계
steps:
# 체크아웃 및 JDK 세팅
- name : Checkout
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
# Gradle 권한 부여
- name : Grant Execute permission for gradlew
run: chmod +x gradlew
shell: bash
# application.yml 파일 생성
- name: Make application.yml
run: |
cd ./src/main/resources
touch ./application.yml
echo "${{ secrets.APPLICATION_YAML }}" | base64 --decode > ./application.yml
shell: bash
# Gradle 빌드
- name: Build with Gradle
run: ./gradlew clean build
shell: bash
# 테스트커버리지 체크 결과 확인 (Instruction 기준)
- name: Jacoco Report to PR
id: jacoco
uses: madrapps/[email protected]
with:
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 75
min-coverage-changed-files: 75
title: "⭐️Code Coverage"
update-comment: true