-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (50 loc) · 1.57 KB
/
cakk_dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Android CI
on:
pull_request:
branches: [ develop ]
jobs:
build:
name: PR Checker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Gradle cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Change gradlew permissions
run: chmod +x ./gradlew
- name: Touch local properties
run: touch local.properties
- name: Access CAKK_BASE_URL
env:
CAKK_BASE_URL: ${{ secrets.CAKK_BASE_URL }}
run: echo "CAKK_BASE_URL=\"CAKK_BASE_URL\"" >> local.properties
- name: Access NAVER_API_MAP_KEY
env:
NAVER_API_MAP_KEY: ${{ secrets.NAVER_API_MAP_KEY }}
run: echo "NAVER_API_MAP_KEY=\"$NAVER_API_MAP_KEY\"" >> local.properties
- name: Lint Check
run: ./gradlew ktlintCheck
- name: Run unit tests
run: ./gradlew testDebugUnitTest
- name: Build debug APK
run: ./gradlew assembleDebug --stacktrace
- name: Create android test report
uses: asadmansr/[email protected]
if: ${{ always() }}