Skip to content

Feature/#14 ํ‚ค์›Œ๋“œ ํŽธ์ง€ ๊ธฐ๋Šฅ ๊ตฌํ˜„ #74

Feature/#14 ํ‚ค์›Œ๋“œ ํŽธ์ง€ ๊ธฐ๋Šฅ ๊ตฌํ˜„

Feature/#14 ํ‚ค์›Œ๋“œ ํŽธ์ง€ ๊ธฐ๋Šฅ ๊ตฌํ˜„ #74

Workflow file for this run

name: Develop Branch CI Pipeline
on:
pull_request:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
env:
# ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํ™˜๊ฒฝ๋ณ€์ˆ˜ (RDS)
DB_URL: ${{ secrets.DB_URL }}
DB_USERNAME: ${{ secrets.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
# AWS ํ™˜๊ฒฝ๋ณ€์ˆ˜
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
# ECR ํ™˜๊ฒฝ๋ณ€์ˆ˜
ECR_URI: ${{ secrets.ECR_URI }}
# S3 ํ™˜๊ฒฝ๋ณ€์ˆ˜
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
BASE_URL: ${{ secrets.BASE_URL }}
# gpt ํ™˜๊ฒฝ๋ณ€์ˆ˜
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- name: ์ฝ”๋“œ ๊ฐ€์ ธ์˜ค๊ธฐ
uses: actions/checkout@v4
- name: JDK 17 ์„ค์ •
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Gradle ์˜์กด์„ฑ ์บ์‹ฑ
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/caches/build-cache
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Gradle ๊ถŒํ•œ ๋ถ€์—ฌ
run: chmod +x ./gradlew
shell: bash
- name: JSON ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ
run: mkdir -p WEB1_1_Postman_BE/src/resources
- name: JSON ์ƒ์„ฑ
run: echo '${{ secrets.BOTTLER_FCM }}' > src/main/resources/bottler-fcm.json
- name: Gradle๋กœ ํ…Œ์ŠคํŠธ ๋ฐ ์ปค๋ฒ„๋ฆฌ์ง€ ๋ฆฌํฌํŠธ ์ƒ์„ฑ
run: ./gradlew clean build jacocoTestReport
- name: SonarCloud ํŒจํ‚ค์ง€ ์บ์‹ฑ
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: SonarCloud ๋ถ„์„
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew sonarqube
- name: JSON ์‚ญ์ œ
run: rm src/main/resources/bottler-fcm.json