-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (36 loc) · 1.43 KB
/
androidbuild.yml
File metadata and controls
51 lines (36 loc) · 1.43 KB
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
name : AndroidBuild
on:
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on:
ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
- name : Set Up Java
uses: actions/setup-java@v4.2.1
with:
java-version: '17'
distribution: 'adopt'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Get local.properties from secrets
run: echo "${{secrets.LOCAL_PROPERTIES }}" > $GITHUB_WORKSPACE/local.properties
- name: Run ktlintFormat on the codebase
run: ./gradlew ktlintFormat
- name: Run ktlintCheck on the codebase
run: ./gradlew ktlintCheck
- name: Run Unit Tests
run: ./gradlew clean test
- name: Run debug Build
run: ./gradlew assembleDebug
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.3
with:
name : CalorieBytezDebug.apk
path : app/build/outputs/apk/debug/app-debug.apk