Skip to content

Commit 2a936a1

Browse files
committed
[NDGL-16] chore: android_ci.yml 파일 추가
1 parent 97117ac commit 2a936a1

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/android_ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ "develop" ]
6+
pull_request:
7+
branches: [ "develop" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Gradle cache
17+
uses: actions/cache@v4
18+
with:
19+
path: |
20+
~/.gradle/caches
21+
~/.gradle/wrapper
22+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
23+
restore-keys: |
24+
${{ runner.os }}-gradle-
25+
26+
- name: Set up JDK 21
27+
uses: actions/setup-java@v4
28+
with:
29+
java-version: '21'
30+
distribution: 'temurin'
31+
cache: gradle
32+
33+
- name: Grant execute permission for gradlew
34+
run: chmod +x gradlew
35+
36+
- name: Set up local.properties
37+
run: echo "${{ secrets.LOCAL_PROPERTIES }}" > local.properties
38+
39+
- name: Code style checks
40+
run: ./gradlew ktlintCheck detekt
41+
42+
- name: Run build
43+
run: ./gradlew buildDebug --stacktrace

0 commit comments

Comments
 (0)