-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (35 loc) · 977 Bytes
/
build.yml
File metadata and controls
44 lines (35 loc) · 977 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
41
42
43
44
name: Build and Test
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Decode Keystore
env:
ENCODED_KEYSTORE: ${{ secrets.ENCODED_KEYSTORE }}
run: |
echo $ENCODED_KEYSTORE | base64 -d > app/keystore.jks
- name: Run Unit Tests
run: ./gradlew test
- name: Run Instrumentation Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 35
target: default
arch: x86_64
profile: Nexus 6
script: ./gradlew connectedCheck