update flutter versions. #1
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
name: Integration Tests | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
drive_ios: | |
runs-on: macos-13 | |
strategy: | |
matrix: | |
device: | |
# - "iPhone 8 (13.1)" | |
- "iPhone 14 Pro Max " | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | |
git submodule sync --recursive | |
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | |
# - name: Postdeploy | |
# env: | |
# BLACKBOX_SECRET: ${{ secrets.BLACKBOX_SECRET_KEY }} | |
# run: authpass/_tools/postdeploy.sh | |
- name: ci-install-deps | |
env: | |
BLACKBOX_SECRET: ${{ secrets.BLACKBOX_SECRET_KEY }} | |
run: "./authpass/_tools/ci-install-deps.sh ios" | |
- name: 'Start Simulator' | |
uses: futureware-tech/simulator-action@v1 | |
with: | |
model: ${{ matrix.device }} | |
# - name: List all simulators | |
# run: xcrun instruments -s | |
# # get UUID simulator and boot a simulator on mac from command line | |
# - name: Start Simulator | |
# run: | | |
# UDID=$( | |
# xcrun instruments -s | | |
# awk \ | |
# -F ' *[][]' \ | |
# -v 'device=${{ matrix.device }}' \ | |
# '$1 ~ device { print $2 }' | head -n 1 | |
# ) | |
# echo starting ${UDID} | |
# xcrun simctl boot "${UDID:?No Simulator with this name found}" | |
- name: run test integration_test | |
run: "cd authpass && ~/deps/flutter/bin/flutter test integration_test" | |
# - uses: actions/upload-artifact@v1 | |
# with: | |
# name: driver-screenshots | |
# path: authpass/build/screenshots | |