This action runs Android Lint with reviewdog.
Required. Must be in form of github_token: ${{ secrets.github_token }}
.
Required. Location of Android Lint XML file.
Optional. Report level for reviewdog [info
,warning
,error
].
It's same as -level
flag of reviewdog.
The default is error
.
Optional. Reporter of reviewdog command [github-check
, github-pr-check
,github-pr-review
].
The default is github-check
.
Optional. Additional flags to be passed to reviewdog cli. The default is ``.
name: CI
on: [push, pull_request]
jobs:
build:
name: CI Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Setup JDK 8
uses: actions/setup-java@master
with:
java-version: 8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Gradle build
run: ./gradlew build
- name: Run Android Lint
uses: dvdandroid/action-android-lint@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
lint_xml_file: app/build/reports/lint-results.xml
Note: lint-results.xml
must be available; you need to gradlew build
your application first
I used ScaCap/action-ktlint as a template