Skip to content

Commit

Permalink
Removed unwanted code and build iOS simulator (#8)
Browse files Browse the repository at this point in the history
* remove unused code

* build demo app for ios simulator
  • Loading branch information
saikrishna321 authored Jun 16, 2024
1 parent 394d674 commit 52019e2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 29 deletions.
51 changes: 36 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
branches:
- main

name: Appium Flutter Integration Driver
name: Appium Flutter Integration Server
jobs:
drive_android:
android:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -42,16 +42,37 @@ jobs:
with:
name: Android build
path: ${{ github.workspace }}/demo-app/build/app/outputs/apk/debug/app-debug.apk
# - name: Enable KVM group perms
# 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: run tests
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: ${{ matrix.api-level }}
# target: ${{ matrix.target }}
# arch: x86_64
# profile: Nexus 6
# script: flutter test integration_test/app_test.dart
iOS:
runs-on: macos-latest
steps:
- name: Check out my other private repo
uses: actions/checkout@master
with:
path: 'server'
repository: AppiumTestDistribution/appium-flutter-server
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- uses: subosito/flutter-action@v2
with:
flutter-version: 3.22.1
channel: 'stable'
- run: |
ls
cd server/demo-app
flutter build ios integration_test/appium.dart --simulator
- name: "List files"
continue-on-error: true
run: |
ls -l ${{ github.workspace }}/server/demo-app/build/ios/iphonesimulator/
- name: "Zip files"
run: |
cd ${{ github.workspace }}/server/demo-app/build/ios/iphonesimulator/
zip -r ios.zip Runner.app
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ios-build
path: ${{ github.workspace }}/server/demo-app/build/ios/iphonesimulator/ios.zip
14 changes: 0 additions & 14 deletions server/lib/src/utils.dart

This file was deleted.

0 comments on commit 52019e2

Please sign in to comment.