https://github.com/yutailang0119/action-android-lint
GitHub Action for Android Lint
https://github.com/yutailang0119/action-android-lint
android android-lint github-actions typescript
Last synced: about 1 year ago
JSON representation
GitHub Action for Android Lint
- Host: GitHub
- URL: https://github.com/yutailang0119/action-android-lint
- Owner: yutailang0119
- License: mit
- Created: 2020-04-08T01:43:54.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-05-04T20:03:35.000Z (about 1 year ago)
- Last Synced: 2025-05-04T21:19:33.226Z (about 1 year ago)
- Topics: android, android-lint, github-actions, typescript
- Language: TypeScript
- Homepage:
- Size: 3.71 MB
- Stars: 27
- Watchers: 2
- Forks: 10
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# GitHub Action for Android Lint
This Action generates annotations from [Android Lint](https://developer.android.com/studio/write/lint) Report XML.
## Usage
An example workflow(.github/workflows/android-lint.yml) to executing Android Lint follows:
```yml
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@v4
with:
fetch-depth: 1
- name: set up JDK
uses: actions/setup-java@v4
with:
distribution: jetbrains
java-version: 21
cache: gradle
- run: ./gradlew lint
- uses: yutailang0119/action-android-lint@v4
with:
report-path: build/reports/*.xml # Support glob patterns by https://www.npmjs.com/package/@actions/glob
ignore-warnings: true # Ignore Lint Warnings
continue-on-error: false # If annotations contain error of severity, action-android-lint exit 1.
```
## Author
[Yutaro Muta](https://github.com/yutailang0119)
## References
- Generated from [actions/typescript-action](https://github.com/actions/typescript-action) as template.
- This refer to [mobileposse/github-android-lint-action](https://github.com/mobileposse/github-android-lint-action).
## License
action-android-lint is available under the MIT license. See [the LICENSE file](./LICENSE) for more info.