-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.21 KB
/
test.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
name: Test App
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Android environment
uses: android-actions/setup-android@v3
- name: Decode Keystore
uses: timheuer/[email protected]
id: android_keystore
with:
fileName: "android_keystore.jks"
encodedString: ${{ secrets.KEYSTORE_BASE64 }}
- name: Build APK
run: |
chmod 755 gradlew
./gradlew clean assembleRelease \
-Pandroid.injected.signing.store.file=${{ steps.android_keystore.outputs.filePath }} \
-Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PASSWORD }} \
-Pandroid.injected.signing.key.alias=${{ secrets.KEY_ALIAS }} \
-Pandroid.injected.signing.key.password=${{ secrets.KEY_PASSWORD }}
- name: Run Unit Tests
run: ./gradlew test
- name: Run Lint
run: ./gradlew lint