Skip to content

CI

CI #9

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
jobs:
gradle:
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: Spotless
os: ubuntu-latest
task: spotlessCheck
- name: Lint Android
os: ubuntu-latest
task: lint
- name: Test Android
os: ubuntu-latest
task: connectedDebugAndroidTest
use-android-emulator: true
- name: Test iOS
os: macos-latest
task: iosSimulatorArm64Test
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
cache: gradle
- if: ${{ matrix.use-android-emulator }}
uses: ./.github/actions/run-with-avd
with:
api-level: 35
script: ./gradlew '${{ matrix.task }}'
- if: ${{ !matrix.use-android-emulator }}
run: ./gradlew '${{ matrix.task }}'