Skip to content

Commit

Permalink
Merge pull request #167 from carstenhag/task/add-android-lint-pr-check
Browse files Browse the repository at this point in the history
Adapt CI pipeline to add android lint comments/checks
  • Loading branch information
EmmaTellblom authored Nov 3, 2024
2 parents 185b3f4 + 0711e13 commit 7cb78ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
run: chmod +x gradlew && ./gradlew build

# Explained at https://medium.com/bumble-tech/android-lint-and-detekt-warnings-in-github-pull-requests-2880df5d32af
- uses: github/codeql-action/upload-sarif@v2
if: success() || failure()
with:
sarif_file: app/build/reports/lint-results-debug.sarif
category: lint
3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ android {
// Disables dependency metadata when building Android App Bundles.
includeInBundle = false
}
lint {
sarifReport = true
}
}

dependencies {
Expand Down

0 comments on commit 7cb78ad

Please sign in to comment.