-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.52 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
49
50
51
52
53
54
55
56
57
58
59
name: 'Checkit Backend CI'
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
env:
DOCKER_ID: ${{ secrets.DOCKER_ID }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_IMAGE_NAME: ${{ secrets.DOCKER_IMAGE_NAME }}
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: private 레포지토리 가져오기
uses: actions/checkout@v3
with:
token: ${{ secrets.SUBMODULE_TOKEN }}
submodules: recursive
- name: JDK 11을 설치
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Gradle 명령 실행을 위한 권한을 부여
run: chmod +x gradlew
- name: Gradle build 수행
run: ./gradlew build -x test -P DOCKER_ID=${{ secrets.DOCKER_ID }} -P DOCKER_PASSWORD=${{ secrets.DOCKER_PASSWORD }} -P DOCKER_IMAGE_NAME=${{ secrets.DOCKER_IMAGE_NAME }}
# - name: 테스트 결과
# uses: EnricoMi/publish-unit-test-result-action@v1
# if: always()
# with:
# files: '**/build/test-results/test/TEST-*.xml'
# - name: JaCoCo Coverage 결과
# id: jacoco
# uses: madrapps/[email protected]
# with:
# title: 📝 테스트 커버리지 리포트입니다
# paths: ${{ github.workspace }}/build/jacoco/index.xml
# token: ${{ secrets.GITHUB_TOKEN }}
# min-coverage-overall: 80
# min-coverage-changed-files: 70