tag api request에서 누락된 field 추가(createdAt & updatedAt) (#84) #183
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: Kotlin Lint Check | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# 1. Docker 및 Docker Compose 설치 | |
- name: Install Docker Compose | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y docker-compose | |
# 2. Docker Compose로 DB 시작 | |
- name: Start Database with Docker Compose | |
run: | | |
docker-compose up -d mysql | |
working-directory: . | |
# 3. DB 준비 시간 대기 | |
- name: Wait for Database | |
run: | | |
until nc -z localhost 3306; do | |
echo "Waiting for the database to be ready..." | |
sleep 5 | |
done | |
# 4. Java 환경 설정 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
# 5. Gradle 의존성 설치 및 Ktlint 검사 실행 | |
- name: Run Ktlint | |
run: ./gradlew ktlintCheck | |
# 6. Docker Compose 정리 | |
- name: Stop Database | |
run: | | |
docker-compose down | |
working-directory: . |