Skip to content

Commit

Permalink
Create test-ui-tests.yml for testing
Browse files Browse the repository at this point in the history
This is just to test the ones in the PR and will be deleted!
  • Loading branch information
jhaven-stytch authored Jan 3, 2024
1 parent f2a1f17 commit e8aac3c
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/test-ui-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: uiTests

on:
workflow_dispatch:
push:
branches: [ master, main, dev ]
pull_request:
branches: [ master, main, dev ]
jobs:
test:
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3

- name: setup java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17

- name: Gradle cache
uses: gradle/gradle-build-action@v2

- name: AVD cache
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd

- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."

- name: run ui tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedCheck
env:
STYTCH_PUBLIC_TOKEN: 'abc123'
GOOGLE_OAUTH_CLIENT_ID: 'abc123'
STYTCH_B2B_PUBLIC_TOKEN: 'abc123'
STYTCH_B2B_ORG_ID: 'abc123'
PASSKEYS_DOMAIN: 'abc123'
STYTCH_UI_PUBLIC_TOKEN: 'abc123'

0 comments on commit e8aac3c

Please sign in to comment.