Skip to content

Commit

Permalink
이것도 되나?
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-ji-hoon authored Jul 17, 2024
1 parent cff45e1 commit bc5c0d4
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bc5c0d4

Please sign in to comment.