Feat/dto #324
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
name: CI Pipeline # 워크플로우 이름 | |
on: | |
push: | |
branches: | |
- 'feat/*' # feat/* 브랜치에 push 시 실행 | |
- 'dev' | |
pull_request: | |
branches: | |
- dev # dev 브랜치로 PR 생성 시 실행 | |
- main # main 브랜치로 PR 생성 시 실행 | |
jobs: | |
build-and-test: # Job 이름 | |
runs-on: ubuntu-latest # 작업 실행 환경 | |
env: | |
# GitHub Secrets 주입 | |
CLOUDFRONT_PRIVATE_KEY: ${{ secrets.CLF_PRIVATE_KEY }} | |
CLOUDFRONT_KEY_PAIR_ID: ${{ secrets.CLF_KEY_PAIR_ID }} | |
steps: | |
- name: Checkout code # Step 이름 | |
uses: actions/checkout@v4 # GitHub Action 사용 (코드 체크아웃) | |
- name: Setup MySQL | |
run: docker compose -f docker-compose.yaml up -d | |
- name: Set up Eclipse Temurin JDK 17 # Eclipse Temurin JDK 설정 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Lint Check # 린트 체크 실행 | |
run: ./gradlew ktlintCheck | |
- name: Build with Gradle # Gradle 빌드 실행 | |
run: ./gradlew build |