Skip to content

refactor [#42] erd festivalTimes ํ…Œ์ด๋ธ” ์ถ”๊ฐ€ #17

refactor [#42] erd festivalTimes ํ…Œ์ด๋ธ” ์ถ”๊ฐ€

refactor [#42] erd festivalTimes ํ…Œ์ด๋ธ” ์ถ”๊ฐ€ #17

Workflow file for this run

# Workflow ์ด๋ฆ„
name: CI workflow
# Event Trigger ํ™˜๊ฒฝ
on:
pull_request:
branches: [ "develop" ] # pull request๊ฐ€ develop ๋ธŒ๋žœ์น˜์— ์ƒ์„ฑ๋˜๋ฉด ํŠธ๋ฆฌ๊ฑฐ
permissions: # ์›Œํฌํ”Œ๋กœ์šฐ ๊ถŒํ•œ
contents: read # ์ฝ๊ธฐ
jobs:
build:
# ์‹คํ–‰ํ™˜๊ฒฝ ์„ค์ •
runs-on: ubuntu-24.04
# Action์„ ์‚ฌ์šฉํ•˜์—ฌ Step์„ ๊ตฌ์„ฑ
steps:
- name: ์ฒดํฌ์•„์›ƒ
uses: actions/checkout@v4 # GitHub repository ์ฝ”๋“œ ์ฒดํฌ์•„์›ƒ
# JDK 17 ์„ค์น˜
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
# resources ํด๋” ์ƒ์„ฑ
- name: Create resources folder if not exist
run: |
if [ ! -d "./src/main/resources" ]; then
mkdir -p ./src/main/resources
fi
# application.yml ํŒŒ์ผ ์ƒ์„ฑ
- name: make application.yml
run: |
touch ./src/main/resources/application.yml
echo "${{ secrets.APPLICATION_YML }}" > ./src/main/resources/application.yml
shell: bash
# cloud ํด๋” ์ƒ์„ฑ
- name: Create cloud folder if not exist
run: |
if [ ! -d "./src/main/resources/cloud" ]; then
mkdir -p ./src/main/resources/cloud
fi
# application-cloud.yml ํŒŒ์ผ ์ƒ์„ฑ
- name: make application-cloud.yml
run: |
touch ./src/main/resources/cloud/application-cloud.yml
echo "${{ secrets.APPLICATION_CLOUD_YML }}" > ./src/main/resources/cloud/application-cloud.yml
shell: bash
# ๋นŒ๋“œ ์†๋„ ํ–ฅ์ƒ์„ ์œ„ํ•œ Gradle ์บ์‹ฑ
- name: Gradle Caching
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
# ๋นŒ๋“œ๋ฅผ ์œ„ํ•œ ๊ถŒํ•œ ๋ถ€์—ฌ
- name: Grant execute permission for gradlew
run: chmod +x gradlew # Gradle wrapper์— ์‹คํ–‰ ๊ถŒํ•œ ๋ถ€์—ฌ
# Gradle์„ ์‚ฌ์šฉํ•˜์—ฌ ๋นŒ๋“œ ์‹คํ–‰
- name: Build with Gradle Wrapper
run: ./gradlew clean build -x test