Add lint Action

This commit is contained in:
Davide Depau committed 2020-07-18 02:17:35 +02:00
1 parent 6aedb6fcfb
commit 6dfd161a23
1 file changed
+37
+37
View File
@@ -0,0 +1,37 @@
name: Lint
on:
push:
paths:
- .github/workflows/android-lint.yml
- '*/src/**'
- gradle/**
- '**.gradle'
- gradle.properties
- gradlew*
pull_request:
paths:
- .github/workflows/android-lint.yml
- '*/src/**'
- gradle/**
- '**.gradle'
- gradle.properties
- gradlew*
jobs:
android_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Checkout repo'
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: 'Run lint'
run: ./gradlew lint
- uses: yutailang0119/action-android-lint@v1.0.2
with:
xml_path: build/reports/lint-results.xml