mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 21:27:01 +05:30
github: prep for running instrumentation tests
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
7da2cfd456
commit
91cfb0b2d2
1 changed files with 13 additions and 2 deletions
15
.github/workflows/pull_request.yml
vendored
15
.github/workflows/pull_request.yml
vendored
|
@ -18,13 +18,24 @@ jobs:
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@c952173edf28a2bd22e1a4926590c1ac39630461
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
||||||
|
|
||||||
- uses: burrunan/gradle-cache-action@v1
|
- uses: burrunan/gradle-cache-action@03c71a8ba93d670980695505f48f49daf43704a6
|
||||||
name: Run unit tests
|
name: Run unit tests
|
||||||
with:
|
with:
|
||||||
arguments: testDebug --stacktrace
|
arguments: testDebug --stacktrace
|
||||||
|
|
||||||
|
- name: Run instrumentation tests
|
||||||
|
uses: reactivecircus/android-emulator-runner@08b092e904025fada32a01b711af1e7ff7b7a4a3
|
||||||
|
with:
|
||||||
|
api-level: 23
|
||||||
|
target: default
|
||||||
|
script: |
|
||||||
|
adb shell settings put global animator_duration_scale 0
|
||||||
|
adb shell settings put global transition_animation_scale 0
|
||||||
|
adb shell settings put global window_animation_scale 0
|
||||||
|
./gradlew :app:connectedDebugAndroidTest
|
||||||
|
|
||||||
- name: (Fail-only) upload test report
|
- name: (Fail-only) upload test report
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: actions/upload-artifact@27bce4eee761b5bc643f46a8dfb41b430c8d05f6
|
uses: actions/upload-artifact@27bce4eee761b5bc643f46a8dfb41b430c8d05f6
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue