28 lines
729 B
YAML
28 lines
729 B
YAML
name: Android Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
android-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 1
|
|
- name: set up JDK
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: zulu
|
|
java-version: 11
|
|
cache: gradle
|
|
- run: chmod +x gradlew
|
|
- run: ./gradlew lint
|
|
- uses: yutailang0119/action-android-lint@v3
|
|
with:
|
|
report-path: build/reports/*.xml # Support glob patterns by https://www.npmjs.com/package/@actions/glob
|
|
continue-on-error: false # If annotations contain error of severity, action-android-lint exit 1.
|