This commit is contained in:
Hillel Coren 2020-03-23 14:21:27 +02:00
parent 6dcee3247a
commit 58c94b5418
1 changed files with 6 additions and 11 deletions

View File

@ -12,20 +12,15 @@ jobs:
- name: List all simulators - name: List all simulators
run: "xcrun instruments -s" run: "xcrun instruments -s"
- name: Start Simulator - name: Start Simulator
run: | run: xcrun simctl boot E766D3DF-D016-40B7-AFF4-18B566FB5BF3
UDID=$(
xcrun instruments -s |
awk \
-F ' *[][]' \
-v 'device=${{ matrix.device }}' \
'$1 == device { print $2 }'
)
echo 'UUID'
echo $UDID
xcrun simctl boot "${UDID:?No Simulator with this name found}"
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: subosito/flutter-action@v1 - uses: subosito/flutter-action@v1
with: with:
channel: 'beta' channel: 'beta'
- run: flutter pub get
- run: |
cp lib/.env.dart.example lib/.env.dart
cp android/app/build.gradle.prod android/app/build.gradle
sed -i 's/secret/password/g' lib/.env.dart
- name: Run Tests - name: Run Tests
run: flutter drive --target=test_driver/login_it.dart run: flutter drive --target=test_driver/login_it.dart