-
-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (47 loc) · 1.32 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 }}
name: Run with AVD ./gradlew '${{ matrix.task }}'
uses: ./.github/actions/run-with-avd
with:
api-level: 35
script: ./gradlew '${{ matrix.task }}'
- if: ${{ !matrix.use-android-emulator }}
run: ./gradlew '${{ matrix.task }}'