mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add detekt Android CI workflow, migrate to ktlint plugin (#1122)
This commit is contained in:
parent
70b03d92cb
commit
3dd0f8ceed
7 changed files with 68 additions and 5115 deletions
39
.github/workflows/android.yml
vendored
39
.github/workflows/android.yml
vendored
|
|
@ -70,6 +70,45 @@ jobs:
|
|||
path: app/build/reports
|
||||
retention-days: 30
|
||||
|
||||
detekt:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
|
||||
- name: Validate Gradle wrapper
|
||||
uses: gradle/actions/wrapper-validation@v3
|
||||
|
||||
- name: Mock files for CI
|
||||
run: |
|
||||
rm ./app/google-services.json
|
||||
cp ./app/google-services-example.json ./app/google-services.json
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'zulu'
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v3
|
||||
|
||||
- name: Check detekt
|
||||
run: ./gradlew detekt
|
||||
|
||||
- name: Upload build reports
|
||||
if: ${{ !cancelled() }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: detekt-reports
|
||||
path: app/build/reports
|
||||
retention-days: 30
|
||||
|
||||
androidTest:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue