react-native-vision-camera/.github/workflows/validate-kotlin.yml

34 lines
790 B
YAML
Raw Normal View History

2021-02-23 05:59:42 -07:00
name: Validate Kotlin
on:
push:
branches:
2021-02-23 06:00:32 -07:00
- main
2021-02-23 05:59:42 -07:00
paths:
- '.github/workflows/validate-kotlin.yml'
- 'android/**'
pull_request:
paths:
- '.github/workflows/validate-kotlin.yml'
- 'android/**'
jobs:
AndroidLint:
name: AndroidLint
runs-on: ubuntu-latest
env:
working-directory: ./android
steps:
- uses: actions/checkout@v2
- name: Setup JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run Gradle Lint
run: ./gradlew lint
working-directory: ${{env.working-directory}}
- uses: yutailang0119/action-android-lint@v1.0.2
with:
xml_path: build/reports/lint-results.xml
working-directory: ${{env.working-directory}}