[fix] Enumerate ์ถ๊ฐ #322
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: ๐ญ Maker Dev App CI | |
# ํด๋น Action์ด ์คํ๋๋ Trigger | |
on: | |
push: | |
branches: [ "dev" ] | |
pull_request: | |
branches: [ "dev" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# 1) ์ํฌํ๋ก์ฐ ์คํ ์ ๊ธฐ๋ณธ์ ์ผ๋ก ์ฒดํฌ์์ ํ์ | |
- name: checkout | |
uses: actions/checkout@v3 | |
# 2) JDK 11๋ฒ์ ์ค์น, ๋ค๋ฅธ JDK ๋ฒ์ ์ ์ฌ์ฉํ๋ค๋ฉด ์์ | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'corretto' | |
# 3) ํ๊ฒฝ๋ณ์ ํ์ผ ์์ฑ | |
- name: Copy application-local.yml | |
run: | | |
# application-local.yml, application-test.yml ์์ฑ | |
touch ./src/main/resources/application-local.yml | |
touch ./src/test/resources/application-test.yml | |
# application-local.yml, application-test.yml ํ์ผ ๊ฐ ์ ๋ ฅ | |
echo "${{ secrets.APPLICATION_LOCAL_YML }}" >> ./src/main/resources/application-local.yml | |
echo "${{ secrets.APPLICATION_LOCAL_YML }}" >> ./src/test/resources/application-test.yml | |
# application-local.yml, application-test.yml ํ์ผ ํ์ธ | |
cat ./src/main/resources/application-local.yml | |
cat ./src/test/resources/application-test.yml | |
shell: bash | |
# ์ด ์ํฌํ๋ก์ฐ๋ gradle build | |
- name: Grant execute permission for gradlew | |
run: | | |
chmod +x gradlew | |
- name: Build with Gradle | |
run: | | |
./gradlew build | |