Formalizes fixes for #19 by dropping configurations and defaulting the keep-listening behavior #118
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Android Lint | |
| on: | |
| pull_request: | |
| jobs: | |
| android_lint: | |
| name: Run Android Lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5.0.0 | |
| - uses: actions/setup-java@v5.2.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 17 | |
| - name: Setup reviewdog | |
| uses: reviewdog/action-setup@v1.5.0 | |
| - name: Cache Gradle Files | |
| uses: actions/cache@v5.0.4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | |
| - name: Run Android Lint | |
| run: ./gradlew scratchoff:lintDebug | |
| - name: Review Lint Results | |
| env: | |
| REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| cat scratchoff/build/reports/lint-results-debug.sarif \ | |
| | reviewdog \ | |
| -name=android-lint \ | |
| -f=sarif \ | |
| -reporter=github-pr-review \ | |
| -level=warning |