Skip to content

Update dependency patrol_finders to v2.6.0 #166

Update dependency patrol_finders to v2.6.0

Update dependency patrol_finders to v2.6.0 #166

name: Integration test
on:
push:
paths:
- .github/workflows/integration_test.yml
- "demo_app/**"
- "packages/fwfh_chewie/**"
- "packages/fwfh_webview/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Flutter
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # v2.16.0
with:
cache: true
- uses: gradle/actions/setup-gradle@473878a77f1b98e2b5ac4af93489d1656a80a5ed # v4.2.0
with:
# only update gradle cache from demo_app.yml jobs
cache-read-only: true
- run: echo JAVA_HOME=$JAVA_HOME_17_X64 >> $GITHUB_ENV
- name: Run patrol build
run: |
set -e
dart pub global activate patrol_cli
cd demo_app
flutter build apk --config-only
patrol build android --verbose --target integration_test/auto_resize_test.dart
- uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f # v2.1.7
with:
credentials_json: ${{ secrets.FIREBASE_TEST_LAB_CREDENTIALS_JSON }}
- uses: google-github-actions/setup-gcloud@6189d56e4096ee891640bb02ac264be376592d6a # v2.1.2
- name: Firebase Test Lab
run: |
set -e
cd demo_app
export ANDROID_DEVICE_MODEL=redfin
export ANDROID_DEVICE_VERSION=30
# https://github.com/leancodepl/patrol/blob/master/dev/e2e_app/run_android_testlab
gcloud firebase test android run \
--app build/app/outputs/apk/debug/app-debug.apk \
--client-details matrixLabel="GitHub #${{ github.run_id }}" \
--device model="$ANDROID_DEVICE_MODEL",version="$ANDROID_DEVICE_VERSION",locale=en,orientation=portrait \
--results-bucket=fwfh-dev-patrol-public \
--test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
--timeout 10m \
--type instrumentation \
--use-orchestrator
ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Flutter
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # v2.16.0
with:
cache: true
- name: Unlock Fastlane secrets
env:
GIT_CRYPT_KEY: ${{ secrets.GIT_CRYPT_KEY }}
run: |
set -e
brew install git-crypt
echo "${GIT_CRYPT_KEY}" | base64 -d >/tmp/git-crypt-key
git-crypt unlock /tmp/git-crypt-key
- name: Run patrol build
run: |
set -e
dart pub global activate patrol_cli
cd demo_app/ios
fastlane patrol_build
- uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f # v2.1.7
with:
credentials_json: ${{ secrets.FIREBASE_TEST_LAB_CREDENTIALS_JSON }}
- uses: google-github-actions/setup-gcloud@6189d56e4096ee891640bb02ac264be376592d6a # v2.1.2
- name: Firebase Test Lab
run: |
set -e
export IOS_DEVICE_MODEL=iphone13pro
export IOS_DEVICE_VERSION=16.6
# https://github.com/leancodepl/patrol/blob/master/dev/e2e_app/run_ios_testlab
cd demo_app/build/ios_integ/Build/Products
zip -r ios_tests.zip Release-iphoneos/*.app *.xctestrun
gcloud firebase test ios run \
--client-details matrixLabel="GitHub #${{ github.run_id }}" \
--device model="$IOS_DEVICE_MODEL",version="$IOS_DEVICE_VERSION",locale=en_US,orientation=portrait \
--results-bucket=fwfh-dev-patrol-public \
--test ios_tests.zip \
--timeout 10m \
--type xctest