mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-08-31 17:49:33 +00:00
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
name: Main workflow
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'yc/windows-support'
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: windows-latest
|
|
env:
|
|
JAVA_TOOL_OPTIONS: -Xmx4g
|
|
timeout-minutes: 15
|
|
strategy:
|
|
matrix:
|
|
api-level: [16, 23, 29]
|
|
target: [default, google_apis]
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: validate gradle wrapper
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
- name: build, test and lint
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
npm run lint
|
|
npm test
|
|
|
|
- name: Java 14
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 14
|
|
- uses: actions/cache@v1
|
|
with:
|
|
path: ~/.gradle/caches
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
|
- name: run action
|
|
uses: ./
|
|
with:
|
|
api-level: ${{ matrix.api-level }}
|
|
target: ${{ matrix.target }}
|
|
arch: x86
|
|
profile: Nexus 6
|
|
avd-name: test
|
|
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none
|
|
disable-animations: true
|
|
working-directory: ./test-fixture/
|
|
script: |
|
|
echo $GITHUB_REPOSITORY
|
|
adb devices
|
|
./gradlew help
|
|
./gradlew connectedDebugAndroidTest
|