Skip to content

Commit

Permalink
More UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aaalaniz committed Jun 20, 2024
1 parent 1012692 commit a487774
Showing 1 changed file with 42 additions and 3 deletions.
45 changes: 42 additions & 3 deletions .github/workflows/lightsaber-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,45 @@ jobs:
- name: Unit Test Shared
run: ./gradlew shared:cleanAllTests shared:allTests

ui-test-ios-shared:
runs-on: macos-14
needs: build-shared
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-lightsaber-ci
- uses: futureware-tech/simulator-action@v3
id: ios-simulator
with:
model: 'iPhone 15'
os: iOS
os_version: 17.0

- name: Wait for the simulator to be ready
run: xcrun simctl bootstatus "${{ steps.ios-simulator.outputs.udid }}" -b

- name: iOS UI Tests
run: ./gradlew :shared:iosSimulatorArm64Test

ui-test-android-shared:
runs-on: ubuntu-latest
needs: build-shared
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-lightsaber-ci

- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Android UI Tests
uses: reactivecircus/[email protected]
with:
api-level: 27
script: |
./gradlew :shared:connectedAndroidTest
e2e-test-androidApp:
runs-on: ubuntu-latest
needs: build-androidApp
Expand Down Expand Up @@ -147,6 +186,6 @@ jobs:
run: xcrun simctl install "${{ steps.ios-simulator.outputs.udid }}" iosApp/build/ios/Debug-iphonesimulator/Lightsaber.app

- name: Run Maestro tests
env:
MAESTRO_DRIVER_STARTUP_TIMEOUT: 60000
run: maestro test .maestro
run: |
export MAESTRO_DRIVER_STARTUP_TIMEOUT=60000
maestro test .maestro

0 comments on commit a487774

Please sign in to comment.