Skip to content

[fix] Enumerate ์ถ”๊ฐ€ #322

[fix] Enumerate ์ถ”๊ฐ€

[fix] Enumerate ์ถ”๊ฐ€ #322

Workflow file for this run

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