generated from JetBrains/compose-multiplatform-ios-android-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |