-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) ยท 1.05 KB
/
ci-merge.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
name: Check test coverage and merge
on:
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "GitHub ์์ ๋ ํฌ ๋ฐ์์ค๊ธฐ"
uses: actions/checkout@v3
- name: "JDK17 ์ค๋นํ๊ธฐ"
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: "Gradle ์ค๋นํ๊ธฐ"
run: chmod +x gradlew
- name: "Gradle ๋น๋"
run: ./gradlew build jacocoTestReport -x test
- name: "Codecov์ ์ปค๋ฒ๋ฆฌ์ง ์
๋ก๋"
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: "ํ
์คํธ ์ปค๋ฒ๋ฆฌ์ง๋ฅผ PR์ ์ฝ๋ฉํธ๋ก ๋ฑ๋ก"
id: jacoco
uses: madrapps/[email protected]
with:
title: ๐ ํ
์คํธ ์ปค๋ฒ๋ฆฌ์ง ๋ฆฌํฌํธ์
๋๋ค
paths: /build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 70
min-coverage-changed-files: 70