Tests
This commit is contained in:
parent
6dcee3247a
commit
58c94b5418
|
|
@ -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
|
||||||
Loading…
Reference in New Issue