From 375f6f81e9308897f0165263db0ff777f6567271 Mon Sep 17 00:00:00 2001 From: sandipndev Date: Tue, 2 Apr 2024 20:33:32 +0530 Subject: [PATCH] ci: upload recordings to gcs --- .github/workflows/e2e.yml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index c1eb042892..9170622b17 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -51,8 +51,8 @@ jobs: uses: nick-fields/retry@v3 with: timeout_minutes: 10 - retry_wait_seconds: 30 - max_attempts: 3 + max_attempts: 10 + retry_wait_seconds: 45 command: nix develop -c sh -c 'cd dev && tilt ci' - name: Tilt Server run: | @@ -89,6 +89,17 @@ jobs: name: android-recordings path: android-recordings + # Upload recordings to GCS bucket + - uses: "google-github-actions/auth@v2" + if: always() + with: + credentials_json: "${{ secrets.BUILD_ARTIFACTS_BUCKET_KEY }}" + - uses: "google-github-actions/upload-cloud-storage@v2" + if: always() + with: + path: android-recordings + destination: galoy-build-artifacts/android-recordings/${{ github.run_id }} + # Cleanup - name: Terminate Metro if: always() @@ -147,8 +158,8 @@ jobs: uses: nick-fields/retry@v3 with: timeout_minutes: 10 - retry_wait_seconds: 30 - max_attempts: 3 + max_attempts: 10 + retry_wait_seconds: 45 command: nix develop -c sh -c 'cd dev && tilt ci' - name: Tilt Server run: | @@ -179,6 +190,17 @@ jobs: name: ios-recordings path: ios-recordings + # Upload recordings to GCS bucket + - uses: "google-github-actions/auth@v2" + if: always() + with: + credentials_json: "${{ secrets.BUILD_ARTIFACTS_BUCKET_KEY }}" + - uses: "google-github-actions/upload-cloud-storage@v2" + if: always() + with: + path: ios-recordings + destination: galoy-build-artifacts/ios-recordings/${{ github.run_id }} + # Cleanup - name: Cleanup if: always()