refactor [#42] erd festivalTimes ํ ์ด๋ธ ์ถ๊ฐ #17
Workflow file for this run
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
# 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 |