-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) ยท 1.28 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
40
41
42
43
44
45
46
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: "ํ
์คํธ ์คํ"
run: ./gradlew test
continue-on-error: true
# - name: "ํ
์คํธ ๊ฒฐ๊ณผ ์
๋ก๋"
# uses: EnricoMi/publish-unit-test-result-action@v1
# if: ${{ always() }}
# with:
# files: ./build/reports/jacoco/test/jacocoTestReport.xml
- name: Test Coverage Report
id: jacoco
uses: madrapps/[email protected]
with:
title: Test Coverage Report
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 30
min-coverage-changed-files: 50
- name: Report to CodeCov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./build/reports/jacoco/test/jacocoTestReport.xml