-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (42 loc) · 1.27 KB
/
gradleCI.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
name: Java CI with Gradle
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "*" ]
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
# 환경별 properties 파일 생성 - API-KEY
- name: make application-API-KEY.properties
run: |
cd ./src/main/resources
touch ./application-API-KEY.properties
echo "${{ secrets.YML_CI }}" > ./application-API-KEY.properties
shell: bash
- name: Run chmod to make gradlew executable
run: chmod +x ./gradlew
# gradle build
- name: Build with Gradle
run: ./gradlew clean build -x test
# - name: Test with JaCoCo
# run: ./gradlew build jacocoTestReport
#
# - name: Upload JaCoCo Coverage Report
# uses: madrapps/jacoco-report@v1.2
# with:
# name: jacoco-report
# path: leaguehub-backend/build/reports/jacoco/test/html/jacocoTestReport.xml
# token: ${{ secrets.GIT_TOKEN }}
# title: "테스트 커버리지 측정"