[refactor]: Main #159 코드 정리 및 불필요 코드 삭제 #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |