diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 16f682d76a..e9e3887816 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -227,6 +227,19 @@ jobs: # To run the CI with debug informations, add --info ./gradlew jacocoTestReport --parallel --build-cache + - name: Generate Sarif Lint Report + shell: bash + run: | + # To run the CI with debug informations, add --info + ./gradlew lintDebug --parallel --build-cache + + - name: Upload lint sarif + uses: github/codeql-action/upload-sarif@v2 + if: always() + with: + sarif_file: fe2-android/app/build/reports/lint-results-debug.sarif + category: lint + - name: Cache SonarCloud packages uses: actions/cache@v2 with: diff --git a/fe2-android/app/build.gradle b/fe2-android/app/build.gradle index c628f44134..712218da96 100644 --- a/fe2-android/app/build.gradle +++ b/fe2-android/app/build.gradle @@ -118,6 +118,10 @@ android { resources.srcDirs = [] } } + + lint { + sarifReport true + } } // Disable every task related to release unit tests