https://github.com/jonasb/android-problem-matchers-action
Adds common problem matchers for Android builds to GitHub Action workflows.
https://github.com/jonasb/android-problem-matchers-action
Last synced: 5 months ago
JSON representation
Adds common problem matchers for Android builds to GitHub Action workflows.
- Host: GitHub
- URL: https://github.com/jonasb/android-problem-matchers-action
- Owner: jonasb
- Created: 2020-01-03T10:38:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-03T20:41:34.000Z (over 6 years ago)
- Last Synced: 2025-11-12T12:54:09.149Z (7 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Android Problem Matchers
Adds common problem matchers for Android builds to GitHub Action workflows. Currently adds support for the following tools:
* Kotlin compiler
* Android Lint
* Gradle
This action only configures the problem matchers in order to be compatible with diverse Android workflows.
## Inputs
No inputs are needed.
## Outputs
No outputs are generated apart from configured problem matchers.
## Example usage
In your workflow YAML file add this step:
```yaml
- name: Setup Android problem matchers
uses: jonasb/android-problem-matchers-action@v1
```
Example full workflow definition:
```yaml
name: Android CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Setup Android problem matchers
uses: jonasb/android-problem-matchers-action@v1
- name: Build Android
run: |
./gradlew build -PisCI=true
```
In order for Android Lint problems (especially warnings) to show up in the logs and be detected, make these changes to `app/build.gradle`:
```groovy
android {
lintOptions {
textReport project.hasProperty('isCI')
textOutput 'stdout'
}
}
```