-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.33 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
# See https://github.com/coil-kt/coil/blob/master/.github/workflows/ci.yml
name: CI
on: [push]
jobs:
instrumentation-tests:
name: Instrumentation tests
runs-on: macOS-latest
timeout-minutes: 60
strategy:
fail-fast: true
matrix:
api-level: [29]
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v1
with:
java-version: 8
# Ensure .gradle/caches is empty before writing to it.
# This helps us stay within Github's cache size limits.
# Rename the folder instead of deleting it as it's faster.
- name: Clean cache
run: mv ~/.gradle/caches ~/.gradle/.invalid_caches
# Restore the cache.
# Intentionally don't set 'restore-keys' so the cache never contains redundant dependencies.
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: gradle-${{ runner.os }}-${{ hashFiles('**/build.gradle.kts') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/src/main/kotlin/Library.kt') }}
- name: Instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86
script: ./gradlew :app:assembleDebugAndroidTest