From bc5c0d477baf0ecf1f60b8ceb9e276c0f8b99d68 Mon Sep 17 00:00:00 2001 From: ezhoon <53300830+lee-ji-hoon@users.noreply.github.com> Date: Wed, 17 Jul 2024 13:15:17 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EA=B2=83=EB=8F=84=20=EB=90=98?= =?UTF-8?q?=EB=82=98=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/android.yml | 36 ++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index edce472..afaa6d0 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -2,25 +2,47 @@ name: Android CI on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: set up JDK 17 + + - name: JDK 17 설정 uses: actions/setup-java@v3 with: java-version: '17' distribution: 'temurin' cache: gradle - - name: Grant execute permission for gradlew + - name: Gradle 캐시 복원 + uses: actions/cache@v3 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: gradlew 실행 권한 부여 run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew build + + - name: Gradle 빌드 + run: ./gradlew build --no-daemon --parallel + + - name: 코틀린 스타일 테스트 + run: ./gradlew ktlintCheck + + - name: Kotlin 스타일 테스트 + run: ./gradlew detekt + + - name: Android Lint 테스트 + run: ./gradlew lint + + - name: 프로젝트 Unit 테스트 + run: ./gradlew testDebugUnitTest