-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.04 KB
/
ci_test.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: Java CI with Gradle
on:
pull_request:
branches:
- main
- develop
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 체크아웃
uses: actions/checkout@v3
- name: JDK 17 설치
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Gradle 캐싱
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Gradle 권한 부여
run: chmod +x gradlew
shell: bash
- name: Gradle build 수행
run: ./gradlew build -x test -x asciidoctor -Pjasypt.encryptor.password=${{ secrets.JASYPT_PASSWORD }}
shell: bash
- name: prod 환경에서 Gradle test 수행
run: ./gradlew clean test -Pprofile=prod
shell: bash