Skip to content

chore(ci): Use Java 17 in CI #839

chore(ci): Use Java 17 in CI

chore(ci): Use Java 17 in CI #839

Workflow file for this run

name: Android CI
on: [push, pull_request]
permissions:
contents: read
jobs:
validation:
name: Validate Gradle Wrapper
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
cache: 'gradle'
- name: Unit tests
run: bash ./gradlew test --stacktrace
aar:
name: Generate AAR
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
check-latest: true
cache: 'gradle'
- name: Build debug AAR
run: bash ./gradlew assemble --stacktrace
- name: Upload AAR
uses: actions/upload-artifact@v4
with:
name: aar
path: ./**/build/outputs/aar/**.aar