Skip to content

Commit bdf8ff2

Browse files
committed
Run instrumented tests with GitHub Actions.
1 parent 67c346c commit bdf8ff2

File tree

9 files changed

+54
-81
lines changed

9 files changed

+54
-81
lines changed

Diff for: .cirrus.yml

-30
This file was deleted.

Diff for: .github/workflows/build.yml

+52
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,58 @@ jobs:
6464
- run: |
6565
./gradlew test apiCheck detekt lintDebug -PslimTests
6666
67+
instrumented-tests:
68+
name: Instrumented tests
69+
runs-on: macos-latest
70+
strategy:
71+
matrix:
72+
module:
73+
- flowbinding-common
74+
- flowbinding-android
75+
- flowbinding-activity
76+
- flowbinding-appcompat
77+
- flowbinding-core
78+
- flowbinding-drawerlayout
79+
- flowbinding-lifecycle
80+
- flowbinding-material
81+
- flowbinding-navigation
82+
- flowbinding-preference
83+
- flowbinding-recyclerview
84+
- flowbinding-swiperefreshlayout
85+
- flowbinding-viewpager
86+
- flowbinding-viewpager2
87+
88+
timeout-minutes: 30
89+
env:
90+
JAVA_TOOL_OPTIONS: -Xmx4g
91+
ENABLE_APP_VERSIONING: false
92+
93+
steps:
94+
- uses: actions/checkout@v2
95+
96+
- uses: gradle/wrapper-validation-action@v1
97+
98+
- uses: actions/setup-java@v1
99+
with:
100+
java-version: 15
101+
102+
- uses: actions/cache@v2
103+
with:
104+
path: |
105+
~/.gradle/caches
106+
~/.gradle/wrapper
107+
key: ${{ runner.os }}-${{ github.job }}-${{ matrix.module }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
108+
restore-keys: |
109+
${{ runner.os }}-${{ github.job }}-
110+
111+
- name: Run Android instrumented tests
112+
uses: reactivecircus/android-emulator-runner@v2
113+
with:
114+
api-level: 28
115+
arch: x86
116+
profile: pixel
117+
script: ./gradlew ${{ matrix.module }}:connectedCheck
118+
67119
deploy-snapshot:
68120
name: Deploy snapshot
69121
needs: [assemble, checks]

Diff for: .github/workflows/email.yml

-26
This file was deleted.

Diff for: README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# FlowBinding
22

33
![CI](https://github.com/ReactiveCircus/FlowBinding/workflows/Build/badge.svg)
4-
[![Build Status](https://api.cirrus-ci.com/github/ReactiveCircus/FlowBinding.svg)](https://cirrus-ci.com/github/ReactiveCircus/FlowBinding)
54
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.reactivecircus.flowbinding/flowbinding-android/badge.svg)](https://search.maven.org/search?q=g:io.github.reactivecircus.flowbinding)
65
[![Android API](https://img.shields.io/badge/API-14%2B-blue.svg?label=API&maxAge=300)](https://www.android.com/history/)
76
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

Diff for: buildSrc/settings.gradle.kts

-2
This file was deleted.
File renamed without changes.

Diff for: gradle/buildCacheSettings.gradle

-17
This file was deleted.

Diff for: mkdocs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ copyright: 'Copyright © 2019 Yang Chen'
1212
theme:
1313
name: 'material'
1414
language: 'en'
15-
favicon: 'images/reactive_cirrus_logo.png'
16-
logo: 'images/reactive_cirrus_logo.png'
15+
favicon: 'images/reactive_circus_logo.png'
16+
logo: 'images/reactive_circus_logo.png'
1717
palette:
1818
primary: 'white'
1919
accent: 'white'

Diff for: settings.gradle.kts

-3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,3 @@ fun includeProject(name: String, filePath: String) {
4949
include(name)
5050
project(name).projectDir = File(filePath)
5151
}
52-
53-
// apply build cache configuration
54-
apply(from = File(settingsDir, "gradle/buildCacheSettings.gradle"))

0 commit comments

Comments
 (0)