Update detekt-config.yml (#67) #44
This file contains 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: 'Build' | |
on: | |
pull_request: | |
push: | |
branches: | |
- '**develop' | |
- 'master' | |
- 'release/**' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v4 | |
- name: 'Setup JDK' | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: 'Setup Android SDK' | |
uses: android-actions/setup-android@v3 | |
- name: 'Setup Gradle' | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
dependency-graph: generate-and-submit | |
- name: 'Configure Gradle Properties' | |
run: echo 'org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError' >> local.properties | |
- name: 'Assemble' | |
run: ./gradlew assembleDebug | |
- name: 'Detekt' | |
run: ./gradlew detektDebug | |
- name: 'Upload Detekt Report Artifacts' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 'Detekt Results' | |
path: | | |
**/build/reports/detekt/*.md | |
- name: 'Android Lint' | |
run: ./gradlew lintDebug | |
- name: 'Upload Lint Report Artifacts' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 'Lint Results' | |
path: | | |
**/build/reports/lint/*.html | |
- uses: yutailang0119/action-android-lint@v3 | |
with: | |
report-path: | | |
**/build/reports/lint/*.xml | |
continue-on-error: false |