Snapshot-Test #907
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
with: | |
ref: develop | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
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/[email protected] | |
with: | |
name: screenshots_reports | |
path: ${{ github.workspace }}/stream-chat-android-ui-uitests/build/reports/* |