You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Run AndroidLint with reviewdog
v1.1
This action runs Andriod 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
.
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.TOKEN_GITHUB }}
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