-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.1 KB
/
main-service-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
name: Main Service CI
on:
pull_request:
branches: [ "develop" ]
jobs:
check-skip:
name: Check ot skip CI
runs-on: ubuntu-latest
if: ${{ contains(github.event.head_commit.message, 'Main') || contains(github.event.head_commit.message, 'Global') }}
steps:
- run: echo "${{ github.event.head_commit.message }}"
build:
runs-on: ubuntu-latest
needs: check-skip
steps:
- uses: actions/checkout@v3
- name: 🍀 JDK 17 설정
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: 🍀 application.yml 설정
run: |
cd ./MainService
cd ./src/main
mkdir resources
cd ./resources
touch ./application.yml
echo "$APPLICATION_DEV" > ./application.yml
env:
APPLICATION_MAIN: ${{ secrets.APPLICATION_DEV }}
- name: 🍀 gradle build를 위한 권한 설정
run: |
cd ./Main
chmod +x gradlew
- name: 🍀 gradle build
run: |
cd ./Main
./gradlew build -x test