mirror of
https://github.com/lone-cloud/prism-android
synced 2026-06-03 11:03:10 -07:00
31 lines
675 B
YAML
31 lines
675 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
|
|
- name: Run ktlint check
|
|
run: ./gradlew ktlintCheck --stacktrace
|
|
|
|
- name: Run detekt check
|
|
run: ./gradlew detekt --stacktrace
|
|
|
|
- name: Build debug APK
|
|
run: ./gradlew assembleDebug --stacktrace
|