-
-
Notifications
You must be signed in to change notification settings - Fork 33
43 lines (41 loc) · 1004 Bytes
/
verify-android.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
name: 📱 Validate Android
on:
push:
branches:
- master
paths:
- '.github/workflows/verify-android.yml'
- 'android/**'
pull_request:
branches:
- master
paths:
- '.github/workflows/verify-android.yml'
- 'android/**'
jobs:
java-lint:
runs-on: ubuntu-latest
name: 🔎 Java Lint
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run Java Lint
run: yarn lint-java
android-build:
runs-on: ubuntu-latest
name: 🏗️ Android Build
defaults:
run:
working-directory: ./android
steps:
- uses: actions/checkout@v3
- name: Setup JDK 11
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '11'
- name: Install dependencies
run: yarn install --frozen-lockfile --cwd ..
- name: Run Gradle Lint
run: ./gradlew assembleDebug