-
Notifications
You must be signed in to change notification settings - Fork 273
40 lines (38 loc) · 1.29 KB
/
snapshot-tests.yaml
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
name: Snapshot-Test
on:
workflow_dispatch:
schedule:
# Every midnight
- cron: '0 0 * * *'
jobs:
run_snapshot_tests:
name: Verify snapshots
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v3.1.0
with:
ref: develop
- name: Set up JDK 17
uses: actions/setup-java@v3.6.0
with:
distribution: adopt
java-version: 17
- uses: ./.github/actions/gradle-cache
with:
key-prefix: gradle-test
- name: Snapshot tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 26
disable-animations: true
profile: pixel
arch : x86_64
emulator-options: -no-snapshot-save -no-window -no-audio -no-boot-anim -gpu swiftshader_indirect -camera-back none -camera-front none
script: ./gradlew stream-chat-android-ui-uitests:executeScreenshotTests -Pandroid.testInstrumentationRunnerArguments.filter=io.getstream.chat.android.uitests.util.SnapshotTestFilter
- name: Upload screnshot results
if: always()
uses: actions/upload-artifact@v3.1.0
with:
name: screenshots_reports
path: ${{ github.workspace }}/stream-chat-android-ui-uitests/build/reports/*