-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.14 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
48
name: CI
on:
pull_request:
branches:
- main
- develop
jobs:
test:
name: CI
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- name: 레포지토리를 가져온다
uses: actions/checkout@v4
- name: 자바 17을 설치한다
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Gradle 명령 실행을 위해 권한을 부여한다
run: chmod +x gradlew
- name: Gradle 로 테스트를 실행한다
run: ./gradlew test
- name: 테스트 결과를 PR 에 반영한다
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: '**/build/test-results/test/TEST-*.xml'
# 테스트 코드를 새로 작성하면 재설정
# - name: Add coverage to PR
# id: jacoco
# if: always()
# uses: madrapps/[email protected]
# with:
# paths: ${{ github.workspace }}/build/jacoco/jacocoTestReports.xml
# token: ${{ secrets.GIT_TOKEN }}
# title: Code Coverage