No description
Find a file
Jonas Bengtsson 445684cb49 Extend README
2020-01-03 21:18:34 +01:00
.github Initial version of job 2020-01-03 11:37:01 +01:00
.vscode Add test logs for VS Code debugging 2020-01-03 21:18:10 +01:00
action.yml Initial version of job 2020-01-03 11:37:01 +01:00
index.js Base path of JSON file on path relative to index.js instead of CWD 2020-01-03 12:00:06 +01:00
package-lock.json Initial version of job 2020-01-03 11:37:01 +01:00
package.json Initial version of job 2020-01-03 11:37:01 +01:00
README.md Extend README 2020-01-03 21:18:34 +01:00
test.js Add test logs for VS Code debugging 2020-01-03 21:18:10 +01:00

Android Problem Matchers

Adds common problem matchers for Android builds to GitHub Action 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:

    - name: Setup Android problem matchers
      uses: jonasb/android-problem-matchers-action@v1

Example full workflow definition:

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:

android {
  lintOptions {
    textReport project.hasProperty('isCI')
    textOutput 'stdout'
  }
}