2021-02-23 06:29:59 -07:00
|
|
|
name: Validate Android
|
2021-02-23 05:59:42 -07:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-02-23 06:00:32 -07:00
|
|
|
- main
|
2021-02-23 05:59:42 -07:00
|
|
|
paths:
|
2021-02-23 06:29:59 -07:00
|
|
|
- '.github/workflows/validate-android.yml'
|
2021-02-23 05:59:42 -07:00
|
|
|
- 'android/**'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2021-02-23 06:29:59 -07:00
|
|
|
- '.github/workflows/validate-android.yml'
|
2021-02-23 05:59:42 -07:00
|
|
|
- 'android/**'
|
|
|
|
|
|
|
|
jobs:
|
2021-02-23 06:35:55 -07:00
|
|
|
lint:
|
|
|
|
name: Gradle Lint
|
2021-02-23 05:59:42 -07:00
|
|
|
runs-on: ubuntu-latest
|
2021-02-23 06:06:15 -07:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./android
|
2021-02-23 05:59:42 -07:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
2021-02-23 06:08:10 -07:00
|
|
|
- name: Setup node_modules
|
|
|
|
run: yarn --cwd ..
|
2021-02-23 05:59:42 -07:00
|
|
|
- name: Run Gradle Lint
|
|
|
|
run: ./gradlew lint
|
|
|
|
- uses: yutailang0119/action-android-lint@v1.0.2
|
|
|
|
with:
|
2021-02-23 06:12:17 -07:00
|
|
|
xml_path: android/build/reports/lint-results.xml
|