thunderbird-android/.github/workflows/android.yml
2024-04-16 10:55:59 +02:00

56 lines
1.1 KiB
YAML

name: Android CI
on:
pull_request:
paths-ignore:
- '.idea/**'
- '.gitattributes'
- '.github/**.json'
- '.gitignore'
- '.gitmodules'
- '**.md'
- 'LICENSE'
- 'NOTICE'
jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3
build:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Quality - Spotless
run: ./gradlew spotlessCheck
- name: Quality - Detekt
run: ./gradlew detekt
- name: Quality - Lint
run: ./gradlew lint
- name: Quality - Dependency Guard
run: ./gradlew dependencyGuard
- name: Build
run: ./gradlew assembleDebug
- name: Test
run: ./gradlew testsOnCi