Skip to content

yutailang0119/action-android-lint

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

aa7ebf4 · May 9, 2022
Apr 22, 2022
Nov 17, 2021
May 9, 2022
May 9, 2022
Oct 21, 2021
Oct 21, 2021
Oct 22, 2021
May 5, 2022
Apr 8, 2020
Oct 22, 2021
Oct 31, 2020
Mar 10, 2022
May 6, 2022
Oct 21, 2021
May 6, 2022
May 6, 2022
Feb 17, 2022

Repository files navigation

action-android-lint status

GitHub Action for Android Lint

This Action generates annotations from Android Lint Report XML.

Usage

An example workflow(.github/workflows/android-lint.yml) to executing Android Lint follows:

name: AndroidLint

on:
  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@v3
        with:
          fetch-depth: 1
      - name: set up JDK
        uses: actions/setup-java@v3
        with:
          distribution: zulu
          java-version: 11
          cache: gradle
      - 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.

Author

Yutaro Muta

References

License

action-android-lint is available under the MIT license. See the LICENSE file for more info.