Merge pull request #17 from GetStream/dependabot/gradle/androidxLifec… #43
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: Android CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Spotless check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
validate-wrappers: true | |
gradle-home-cache-cleanup: true | |
- name: spotless | |
run: ./gradlew spotlessCheck --no-daemon --no-configuration-cache | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
distribution: zulu | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
validate-wrappers: true | |
gradle-home-cache-cleanup: true | |
- name: Make Gradle executable | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: | | |
./gradlew --scan --stacktrace \ | |
:app:assembleDebug |