-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (30 loc) · 899 Bytes
/
android_ci.yml
File metadata and controls
40 lines (30 loc) · 899 Bytes
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
name: Android CI
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-home-cache-cleanup: true
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Set up local.properties
run: echo "${{ secrets.LOCAL_PROPERTIES }}" > local.properties
- name: Set up google-services.json
run: echo '${{ secrets.GOOGLE_SERVICES }}' | base64 -d > app/google-services.json
- name: Code style checks
run: ./gradlew ktlintCheck detekt
- name: Run build
run: ./gradlew assembleDebug --stacktrace