Skip to content

Commit

Permalink
chore: added lint report
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoso committed Oct 15, 2024
1 parent dc1ee31 commit fb312ed
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/lint-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lint and Upload SARIF

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'

- name: Run Android Lint
run: ./gradlew lint

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: app/build/reports/lint-results.sarif
4 changes: 3 additions & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ dokkaHtml {
}

android {

lintOptions {
sarifOutput = file("$buildDir/reports/lint-results.sarif")
}
defaultConfig {
compileSdk 34
minSdkVersion 21
Expand Down

0 comments on commit fb312ed

Please sign in to comment.