Skip to content

Commit

Permalink
actions변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayle0627 committed Jan 2, 2025
1 parent b7d856c commit 08a8003
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,34 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

# 1. Docker Compose로 DB 시작
# 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 db
docker-compose up -d mysql
working-directory: .

# 2. DB 준비 시간 대기
# 3. DB 준비 시간 대기
- name: Wait for Database
run: |
until nc -z localhost 3306; do
echo "Waiting for the database to be ready..."
sleep 5
done
# 3. Java 환경 설정
# 4. Java 환경 설정
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'

# 4. Gradle 의존성 설치 및 빌드
- name: Install dependencies
run: ./gradlew clean build

# 5. Ktlint 검사 실행
# 5. Gradle 의존성 설치 및 Ktlint 검사 실행
- name: Run Ktlint
run: ./gradlew ktlintCheck

Expand Down

0 comments on commit 08a8003

Please sign in to comment.