-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.23 KB
/
gradle.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
name: Java CI with Gradle
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-13 ]
java: [ 17 ]
api-level: [ 30 ]
target: [ default ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'corretto'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Install the Appium Server
run: npm install -g appium
- name: Install Android Driver
run: appium driver install uiautomator2
- name: Run Android Emulator
uses: ReactiveCircus/android-emulator-runner@v2.33.0
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: x86_64
profile: Nexus 6
script: ./gradlew test
- name: Deploy to GitHub Pages
if: always()
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}