From aab5d7855f3a695d9dd418aa9a5950c755b5a9f4 Mon Sep 17 00:00:00 2001 From: Gideon Okuro Date: Mon, 10 Jun 2024 19:49:10 +0300 Subject: [PATCH 01/15] roboscriptUpload --- .github/workflows/android-release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 469d020b18..b64f29a6ab 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -146,6 +146,26 @@ jobs: overwrite: 'true' file_glob: 'true' + - name: install Firebase CLI + run: npm install -g firebase-tools + + - name: upload APK to Firebase Test Lab + env: + FIREBASE_TOKEN: ${{ secrets.ROBOT_KEY }} + run: | + if [ -f output/myPlanet.apk ]; then + firebase test android run \ + --type robo \ + --app output/myPlanet.apk \ + --project myplanet-2eee1 \ + --results-bucket myPlanet \ + --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ + --timeout 900s + else + echo "APK file not found!" + exit 1 + fi + - name: send success message to discord if: github.event_name != 'workflow_dispatch' && matrix.build != 'lite' run: | From f48180250044e8a4b4c390ffb05bf40c71f904de Mon Sep 17 00:00:00 2001 From: dogi Date: Mon, 10 Jun 2024 13:06:01 -0400 Subject: [PATCH 02/15] Update android-release.yml --- .github/workflows/android-release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index b64f29a6ab..6a8547aa3a 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -146,13 +146,12 @@ jobs: overwrite: 'true' file_glob: 'true' - - name: install Firebase CLI - run: npm install -g firebase-tools - - name: upload APK to Firebase Test Lab + if: github.ref != 'refs/heads/master' env: FIREBASE_TOKEN: ${{ secrets.ROBOT_KEY }} run: | + npm install -g firebase-tools if [ -f output/myPlanet.apk ]; then firebase test android run \ --type robo \ From 8bd06fccfc6d95c5144f7e7fffc1bbaeaefb7a2a Mon Sep 17 00:00:00 2001 From: dogi Date: Mon, 10 Jun 2024 13:11:02 -0400 Subject: [PATCH 03/15] Update android-release.yml --- .github/workflows/android-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 6a8547aa3a..2d0481d3ef 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -147,7 +147,7 @@ jobs: file_glob: 'true' - name: upload APK to Firebase Test Lab - if: github.ref != 'refs/heads/master' + if: github.ref != 'refs/heads/master' && (matrix.build == 'lite') env: FIREBASE_TOKEN: ${{ secrets.ROBOT_KEY }} run: | From e76e677f91c8de6f5d2a910b2d9efcd1f5e2d7eb Mon Sep 17 00:00:00 2001 From: dogi Date: Mon, 10 Jun 2024 13:18:50 -0400 Subject: [PATCH 04/15] Update android-release.yml --- .github/workflows/android-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 2d0481d3ef..2ada056865 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -155,7 +155,7 @@ jobs: if [ -f output/myPlanet.apk ]; then firebase test android run \ --type robo \ - --app output/myPlanet.apk \ + --app output/myPlanet-${{ env.ANDROID_VERSION_NAME }}-${{ env.BRANCHNAME }}.apk \ --project myplanet-2eee1 \ --results-bucket myPlanet \ --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ From 1b8c0478a3311f8e0c05947933a7e33f2ad63aa8 Mon Sep 17 00:00:00 2001 From: dogi Date: Mon, 10 Jun 2024 13:27:50 -0400 Subject: [PATCH 05/15] Update android-release.yml --- .github/workflows/android-release.yml | 38 ++++++++++++++------------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 2ada056865..d33dab26e2 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -111,6 +111,26 @@ jobs: status: completed changesNotSentForReview: true + - name: upload APK to Firebase Test Lab + if: github.ref != 'refs/heads/master' && (matrix.build == 'lite') + env: + FIREBASE_TOKEN: ${{ secrets.ROBOT_KEY }} + run: | + ls -al output/ + npm install -g firebase-tools + if [ -f output/myPlanet.apk ]; then + firebase test android run \ + --type robo \ + --app output/myPlanet.apk \ + --project myplanet-2eee1 \ + --results-bucket myPlanet \ + --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ + --timeout 900s + else + echo "APK file not found!" + exit 1 + fi + - name: rename APK and AAB with version and branch for artifact if: github.event_name == 'workflow_dispatch' run: | @@ -146,24 +166,6 @@ jobs: overwrite: 'true' file_glob: 'true' - - name: upload APK to Firebase Test Lab - if: github.ref != 'refs/heads/master' && (matrix.build == 'lite') - env: - FIREBASE_TOKEN: ${{ secrets.ROBOT_KEY }} - run: | - npm install -g firebase-tools - if [ -f output/myPlanet.apk ]; then - firebase test android run \ - --type robo \ - --app output/myPlanet-${{ env.ANDROID_VERSION_NAME }}-${{ env.BRANCHNAME }}.apk \ - --project myplanet-2eee1 \ - --results-bucket myPlanet \ - --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ - --timeout 900s - else - echo "APK file not found!" - exit 1 - fi - name: send success message to discord if: github.event_name != 'workflow_dispatch' && matrix.build != 'lite' From 20672362c7bc5dd1053b0043bb378bd05284c56a Mon Sep 17 00:00:00 2001 From: Gideon Okuro Date: Mon, 10 Jun 2024 20:40:57 +0300 Subject: [PATCH 06/15] Update android-release.yml --- .github/workflows/android-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index d33dab26e2..9eb8baa20b 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -120,7 +120,7 @@ jobs: npm install -g firebase-tools if [ -f output/myPlanet.apk ]; then firebase test android run \ - --type robo \ + --robo-script \ --app output/myPlanet.apk \ --project myplanet-2eee1 \ --results-bucket myPlanet \ From 1aec714a068e0bc52e002ac8d2a3bc9df3259969 Mon Sep 17 00:00:00 2001 From: Gideon Okuro Date: Mon, 10 Jun 2024 21:12:37 +0300 Subject: [PATCH 07/15] Update android-release.yml --- .github/workflows/android-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 9eb8baa20b..ffaf3d9806 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -120,9 +120,9 @@ jobs: npm install -g firebase-tools if [ -f output/myPlanet.apk ]; then firebase test android run \ - --robo-script \ --app output/myPlanet.apk \ --project myplanet-2eee1 \ + --type robo \ --results-bucket myPlanet \ --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ --timeout 900s From f9b1e417d78e7c3c066b67fe186113b870ec34d4 Mon Sep 17 00:00:00 2001 From: dogi Date: Mon, 10 Jun 2024 14:23:15 -0400 Subject: [PATCH 08/15] Update android-release.yml --- .github/workflows/android-release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index ffaf3d9806..552259269e 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -122,7 +122,6 @@ jobs: firebase test android run \ --app output/myPlanet.apk \ --project myplanet-2eee1 \ - --type robo \ --results-bucket myPlanet \ --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ --timeout 900s From c14b75fcd2ea00f555616ac9a1af1bc5f6f961d4 Mon Sep 17 00:00:00 2001 From: dogi Date: Mon, 10 Jun 2024 14:41:17 -0400 Subject: [PATCH 09/15] Update android-release.yml --- .github/workflows/android-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 552259269e..b8c28b08f4 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -118,10 +118,12 @@ jobs: run: | ls -al output/ npm install -g firebase-tools + firebase --version if [ -f output/myPlanet.apk ]; then firebase test android run \ --app output/myPlanet.apk \ --project myplanet-2eee1 \ + --type instrumentation \ --results-bucket myPlanet \ --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ --timeout 900s From 6dbca13a91583da0c4eb730621941b4679d029c7 Mon Sep 17 00:00:00 2001 From: dogi Date: Mon, 10 Jun 2024 14:54:18 -0400 Subject: [PATCH 10/15] Update android-release.yml --- .github/workflows/android-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index b8c28b08f4..0874efea12 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -119,6 +119,7 @@ jobs: ls -al output/ npm install -g firebase-tools firebase --version + firebase test android run --help if [ -f output/myPlanet.apk ]; then firebase test android run \ --app output/myPlanet.apk \ From ffdf616a61cecca0b2cf1f89246163c8a8ef4adb Mon Sep 17 00:00:00 2001 From: dogi Date: Mon, 10 Jun 2024 15:04:26 -0400 Subject: [PATCH 11/15] Update android-release.yml --- .github/workflows/android-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 0874efea12..2365163260 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -120,11 +120,12 @@ jobs: npm install -g firebase-tools firebase --version firebase test android run --help + firebase projects:list if [ -f output/myPlanet.apk ]; then firebase test android run \ --app output/myPlanet.apk \ --project myplanet-2eee1 \ - --type instrumentation \ + --type robo \ --results-bucket myPlanet \ --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ --timeout 900s From a9af6096614aee802d3ae35bb82c3c3f9362c753 Mon Sep 17 00:00:00 2001 From: dogi Date: Thu, 8 Aug 2024 06:18:27 -0400 Subject: [PATCH 12/15] Update android-release.yml --- .github/workflows/android-release.yml | 38 ++++++++++++++------------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 2365163260..a1135fba0b 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -114,25 +114,27 @@ jobs: - name: upload APK to Firebase Test Lab if: github.ref != 'refs/heads/master' && (matrix.build == 'lite') env: - FIREBASE_TOKEN: ${{ secrets.ROBOT_KEY }} + FIREBASE_TOKEN: ${{ secrets.ROBOT_KEY }} run: | - ls -al output/ - npm install -g firebase-tools - firebase --version - firebase test android run --help - firebase projects:list - if [ -f output/myPlanet.apk ]; then - firebase test android run \ - --app output/myPlanet.apk \ - --project myplanet-2eee1 \ - --type robo \ - --results-bucket myPlanet \ - --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ - --timeout 900s - else - echo "APK file not found!" - exit 1 - fi + ls -al output/ + npm install -g firebase-tools + firebase --version + #firebase projects:list + if [ -f output/myPlanet.apk ]; then + gcloud config set project linux-422103 + #gcloud firebase test android models list + gcloud firebase test android run \ + --type robo \ + --app output/myPlanet.apk \ + --results-bucket myplanet-results \ + --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ + --timeout 900s \ + --device model=MediumPhone.arm,version=34,locale=es,orientation=portrait + #--device model=shiba,version=34,locale=es,orientation=portrait + else + echo "APK file not found!" + exit 1 + fi - name: rename APK and AAB with version and branch for artifact if: github.event_name == 'workflow_dispatch' From acfe43833ef85468c2dea9557728400fda907e4a Mon Sep 17 00:00:00 2001 From: dogi Date: Thu, 8 Aug 2024 06:23:41 -0400 Subject: [PATCH 13/15] Update android-release.yml --- .github/workflows/android-release.yml | 40 +++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index a1135fba0b..6a6e780d49 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -114,27 +114,27 @@ jobs: - name: upload APK to Firebase Test Lab if: github.ref != 'refs/heads/master' && (matrix.build == 'lite') env: - FIREBASE_TOKEN: ${{ secrets.ROBOT_KEY }} + FIREBASE_TOKEN: ${{ secrets.ROBOT_KEY }} run: | - ls -al output/ - npm install -g firebase-tools - firebase --version - #firebase projects:list - if [ -f output/myPlanet.apk ]; then - gcloud config set project linux-422103 - #gcloud firebase test android models list - gcloud firebase test android run \ - --type robo \ - --app output/myPlanet.apk \ - --results-bucket myplanet-results \ - --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ - --timeout 900s \ - --device model=MediumPhone.arm,version=34,locale=es,orientation=portrait - #--device model=shiba,version=34,locale=es,orientation=portrait - else - echo "APK file not found!" - exit 1 - fi + ls -al output/ + npm install -g firebase-tools + firebase --version + #firebase projects:list + if [ -f output/myPlanet.apk ]; then + gcloud config set project linux-422103 + #gcloud firebase test android models list + gcloud firebase test android run \ + --type robo \ + --app output/myPlanet.apk \ + --results-bucket myplanet-results \ + --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ + --timeout 900s \ + --device model=MediumPhone.arm,version=34,locale=es,orientation=portrait + #--device model=shiba,version=34,locale=es,orientation=portrait + else + echo "APK file not found!" + exit 1 + fi - name: rename APK and AAB with version and branch for artifact if: github.event_name == 'workflow_dispatch' From 860d1f07ac66b520f0091286ee6fcc2bbfe95e21 Mon Sep 17 00:00:00 2001 From: dogi Date: Thu, 8 Aug 2024 06:38:35 -0400 Subject: [PATCH 14/15] Update android-release.yml --- .github/workflows/android-release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 6a6e780d49..67a08e0f2c 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -111,6 +111,18 @@ jobs: status: completed changesNotSentForReview: true + - name: authenticate with google cloud + if: github.ref != 'refs/heads/master' && (matrix.build == 'lite') + uses: google-github-actions/auth@v2 + with: + credentials_json: ${{ secrets.GCLOUD_AUTH }} + + - name: setup gcloud cli + if: github.ref != 'refs/heads/master' && (matrix.build == 'lite') + uses: google-github-actions/setup-gcloud@v2 + with: + version: 'latest' + - name: upload APK to Firebase Test Lab if: github.ref != 'refs/heads/master' && (matrix.build == 'lite') env: From 1d4996310176ad44353b33431d748f8e2d96ccbe Mon Sep 17 00:00:00 2001 From: dogi Date: Thu, 8 Aug 2024 06:47:34 -0400 Subject: [PATCH 15/15] Update android-release.yml --- .github/workflows/android-release.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 67a08e0f2c..364941a045 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -131,18 +131,18 @@ jobs: ls -al output/ npm install -g firebase-tools firebase --version - #firebase projects:list + #firebase projects:list if [ -f output/myPlanet.apk ]; then - gcloud config set project linux-422103 - #gcloud firebase test android models list - gcloud firebase test android run \ - --type robo \ - --app output/myPlanet.apk \ - --results-bucket myplanet-results \ - --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ - --timeout 900s \ - --device model=MediumPhone.arm,version=34,locale=es,orientation=portrait - #--device model=shiba,version=34,locale=es,orientation=portrait + gcloud config set project linux-422103 + #gcloud firebase test android models list + gcloud firebase test android run \ + --type robo \ + --app output/myPlanet.apk \ + --results-bucket myplanet-results \ + --results-dir test-results/myPlanet/$(date +%Y%m%d_%H%M%S) \ + --timeout 900s \ + --device model=MediumPhone.arm,version=34,locale=es,orientation=portrait + #--device model=shiba,version=34,locale=es,orientation=portrait else echo "APK file not found!" exit 1