Skip to content

Commit 4616ee5

Browse files
committed
Add CI workflow
1 parent 12f97da commit 4616ee5

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
branches: [ "**" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: gradle
22+
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
26+
- name: Build with Gradle
27+
run: ./gradlew build
28+
29+
- name: Run Unit Tests
30+
run: ./gradlew test
31+
32+
- name: Run Instrumentation Tests
33+
uses: reactivecircus/android-emulator-runner@v2
34+
with:
35+
api-level: 35
36+
target: default
37+
arch: x86_64
38+
profile: Nexus 6
39+
script: ./gradlew connectedCheck

0 commit comments

Comments
 (0)