From 85fd137b90a416df599f7ab4f92cfd16bd6ce1f2 Mon Sep 17 00:00:00 2001 From: Shounak Mulay Date: Sat, 26 Aug 2023 14:52:21 +0530 Subject: [PATCH 1/3] Generate config before test apk --- .github/workflows/e2e.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b88fabc..87108b0 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -38,8 +38,11 @@ jobs: - name: Activate patrol run: dart pub global activate patrol_cli + - name: Setup android + run: flutter build apk --config-only + - name: Generate Test apks - run: derry build apk qa + run: patrol build android --flavor=qa --dart-define=flavor=qa --verbose - id: 'auth' name: 'Authenticate to Google Cloud' From 599e27fd85f736f6c9091550a802207e9f798ba5 Mon Sep 17 00:00:00 2001 From: Shounak Mulay Date: Sun, 27 Aug 2023 08:39:32 +0530 Subject: [PATCH 2/3] test rules --- .github/workflows/e2e.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 87108b0..18f6ded 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -53,6 +53,9 @@ jobs: - name: 'Set up Cloud SDK' uses: 'google-github-actions/setup-gcloud@v1' + - name: Test rules + run: gcloud iam service-accounts get-iam-policy github-actions-test-lab@flutter-template-ws.iam.gserviceaccount.com + - name: Firebase Test Lab run: gcloud firebase test android run --type instrumentation --app ./build/app/outputs/apk/qa/debug/app-qa-debug.apk --test ./build/app/outputs/apk/androidTest/qa/debug/app-qa-debug-androidTest.apk --device model=panther,version=33 --environment-variables clearPackageData=true --use-orchestrator From 17ce5b3cf2c2070fd9a57539ab365287f38dda51 Mon Sep 17 00:00:00 2001 From: Shounak Mulay Date: Sun, 27 Aug 2023 08:57:51 +0530 Subject: [PATCH 3/3] revert policy check --- .github/workflows/e2e.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 18f6ded..87108b0 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -53,9 +53,6 @@ jobs: - name: 'Set up Cloud SDK' uses: 'google-github-actions/setup-gcloud@v1' - - name: Test rules - run: gcloud iam service-accounts get-iam-policy github-actions-test-lab@flutter-template-ws.iam.gserviceaccount.com - - name: Firebase Test Lab run: gcloud firebase test android run --type instrumentation --app ./build/app/outputs/apk/qa/debug/app-qa-debug.apk --test ./build/app/outputs/apk/androidTest/qa/debug/app-qa-debug-androidTest.apk --device model=panther,version=33 --environment-variables clearPackageData=true --use-orchestrator