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: Driver Tests | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
# test is now run in `unit_test.yaml` | |
# flutter_test: | |
# runs-on: macos-latest | |
# 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: ci-install-deps | |
# env: | |
# BLACKBOX_SECRET: ${{ secrets.BLACKBOX_SECRET_KEY }} | |
# run: "./authpass/_tools/ci-install-deps.sh ios" | |
# - name: run test | |
# run: "cd authpass && ~/deps/flutter/bin/flutter test" | |
drive_ios: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
device: | |
# - "iPhone 8 (13.1)" | |
- "iPhone 12 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: 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: 'Start Simulator' | |
uses: futureware-tech/simulator-action@v1 | |
with: | |
model: ${{ matrix.device }} | |
- name: run test ${{ matrix.flavor }} | |
# --no-enable-impeller: with impeller screenshots don't seem to work. | |
run: "cd authpass && ~/deps/flutter/bin/flutter drive --no-enable-impeller --target=test_driver/app.dart" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: driver-screenshots | |
path: authpass/build/screenshots | |