Skip to content

Commit a63b5a4

Browse files
committed
add workflow to check Android compatibility
1 parent c7dad83 commit a63b5a4

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Check Android compatibility
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
types: [opened, synchronize, reopened, ready_for_review]
11+
12+
jobs:
13+
test:
14+
name: Run Android Compatibility Tests
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
with:
21+
submodules: 'recursive'
22+
23+
- name: Set up JDK 17
24+
uses: actions/setup-java@v3
25+
with:
26+
java-version: '17'
27+
distribution: 'temurin'
28+
29+
- name: Setup Android SDK
30+
uses: android-actions/setup-android@v3
31+
with:
32+
packages: |
33+
platforms;android-24
34+
accept-android-sdk-licenses: 'yes'
35+
36+
- name: Grant execute permission for gradlew
37+
run: chmod +x gradlew
38+
39+
- name: Run Tests
40+
run: |
41+
./gradlew test \
42+
--stacktrace

0 commit comments

Comments
 (0)