Run lint in workflow

pull/214/head
M66B 1 year ago
parent f3e2cf9266
commit 637cf3aa36

@ -40,6 +40,8 @@ jobs:
gpg -d --passphrase "${PASSWORD}" --batch local.properties.asc > local.properties gpg -d --passphrase "${PASSWORD}" --batch local.properties.asc > local.properties
- name: Grant execute permission for gradlew - name: Grant execute permission for gradlew
run: chmod +x gradlew run: chmod +x gradlew
- name: Check with Lint
run: ./gradlew lintGithubRelease
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew assembleGithubRelease assembleLargeRelease assemblePlayRelease uploadBugsnagGithub-releaseMapping uploadBugsnagLarge-releaseMapping uploadBugsnagPlay-releaseMapping run: ./gradlew assembleGithubRelease assembleLargeRelease assemblePlayRelease uploadBugsnagGithub-releaseMapping uploadBugsnagLarge-releaseMapping uploadBugsnagPlay-releaseMapping
- name: Upload to BitBucket - name: Upload to BitBucket

@ -79,10 +79,14 @@ android {
} }
lint { lint {
abortOnError false // https://developer.android.com/studio/write/lint
// https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/dsl/LintOptions
abortOnError true
checkReleaseBuilds false checkReleaseBuilds false
checkDependencies false
disable 'MissingTranslation' disable 'MissingTranslation'
enable 'StringFormatInvalid' fatal 'StringFormatInvalid', 'StringFormatMatches', 'StringFormatCount'
checkOnly 'StringFormatInvalid', 'StringFormatMatches', 'StringFormatCount'
} }
compileOptions { compileOptions {

Loading…
Cancel
Save