diff --git a/.github/actions/eas-build/action.yml b/.github/actions/eas-build/action.yml index 3a582574f..780bd20e6 100644 --- a/.github/actions/eas-build/action.yml +++ b/.github/actions/eas-build/action.yml @@ -4,9 +4,9 @@ # ✍️ Description: # This is a composite action, which means it can be used in other actions. -# This action is used to trigger an EAS Build for a specific environment (development, staging, production). +# This action is used to trigger an EAS Build for a specific environment (development, preview, production). # This action accepts those inputs: -# `APP_ENV`, which is used to generate an APK for a specific environment (development, staging, production). We use staging by default. +# `APP_ENV`, which is used to generate an APK for a specific environment (development, preview, production). We use preview by default. # `AUTO_SUBMIT`, false by default, set to true if you want to automatically submit your build to stores. # `EXPO_TOKEN`, required, access token for your Expo account. https://expo.dev/settings/access-tokens # `VERSION`, required, version of the app to build. used as the build message. @@ -17,7 +17,7 @@ # - name: ⏱️ EAS Build # uses: ./.github/actions/eas-build # with: -# APP_ENV: staging +# APP_ENV: preview # EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }} # VERSION: ${{ github.event.release.tag_name }} # IOS: false @@ -28,7 +28,7 @@ inputs: APP_ENV: description: 'APP_ENV (one of): development, preview, production' required: true - default: staging + default: preview AUTO_SUBMIT: # # TODO: we need to handle this too description: 'AUTO_SUBMIT (one of): true, false' required: true diff --git a/.github/actions/setup-jdk-generate-apk/action.yml b/.github/actions/setup-jdk-generate-apk/action.yml index 88359012b..2ddd2e4e3 100644 --- a/.github/actions/setup-jdk-generate-apk/action.yml +++ b/.github/actions/setup-jdk-generate-apk/action.yml @@ -5,7 +5,7 @@ # ✍️ Description: # This is a composite action, which means it can be used in other actions. # This action is used to set up the JDK environment and generate an Android APK for testing. -# This action accepts one input: `APP_ENV`, which is used to generate an APK for a specific environment (development, staging, production). We use staging by default. +# This action accepts one input: `APP_ENV`, which is used to generate an APK for a specific environment (development, preview, production). We use preview by default. # Before generating the APK, we run a pre-build script to generate the necessary native folders based on the APP_ENV. # On success, the APK is generated at `./android/app/build/outputs/apk/release/app-release.apk`. @@ -13,15 +13,15 @@ # - name : 📦 Set Up JDK + Generate Test APK # uses: ./.github/actions/setup-jdk-generate-apk # with: -# APP_ENV: 'staging' +# APP_ENV: 'preview' name: 'Setup JDK + GRADLE + Generate APK' description: 'Setup JDK + GRADLE + Generate APK' inputs: APP_ENV: - description: 'APP_ENV (one of): development, staging, production' + description: 'APP_ENV (one of): development, preview, production' required: true - default: staging + default: preview runs: using: composite diff --git a/.github/workflows/e2e-android-eas-build.yml b/.github/workflows/e2e-android-eas-build.yml index c6f5ff0c7..c6e98e5f8 100644 --- a/.github/workflows/e2e-android-eas-build.yml +++ b/.github/workflows/e2e-android-eas-build.yml @@ -94,7 +94,7 @@ jobs: profile: Nexus 6 script: | adb install "${{ github.workspace }}/app-release.apk" - $HOME/.maestro/bin/maestro test .maestro/ --env=APP_ID=com.obytes.staging --format junit + $HOME/.maestro/bin/maestro test .maestro/ --env=APP_ID=com.obytes.preview --format junit - name: Upload artifacts if: always() diff --git a/.github/workflows/e2e-android-maestro.yml b/.github/workflows/e2e-android-maestro.yml index 605a68cb1..ffe5f5a16 100644 --- a/.github/workflows/e2e-android-maestro.yml +++ b/.github/workflows/e2e-android-maestro.yml @@ -35,7 +35,7 @@ jobs: - name: 📦 Set Up JDK + Generate Test APK uses: ./.github/actions/setup-jdk-generate-apk with: - APP_ENV: staging + APP_ENV: preview - name: Upload Test APK uses: actions/upload-artifact@v3 @@ -49,4 +49,4 @@ jobs: api-key: ${{ secrets.MAESTRO_CLOUD_API_KEY }} app-file: ./android/app/build/outputs/apk/release/app-release.apk env: | - APP_ID=com.obytes.staging + APP_ID=com.obytes.preview diff --git a/.github/workflows/e2e-android.yml b/.github/workflows/e2e-android.yml index faabd4585..7ed69de78 100644 --- a/.github/workflows/e2e-android.yml +++ b/.github/workflows/e2e-android.yml @@ -37,7 +37,7 @@ jobs: - name: 📦 Set Up JDK + Generate Test APK uses: ./.github/actions/setup-jdk-generate-apk with: - APP_ENV: staging + APP_ENV: preview - name: Upload Test APK uses: actions/upload-artifact@v3 @@ -102,7 +102,7 @@ jobs: profile: Nexus 6 script: | adb install "${{ github.workspace }}/app-release.apk" - $HOME/.maestro/bin/maestro test .maestro/ --env=APP_ID=com.obytes.staging --format junit + $HOME/.maestro/bin/maestro test .maestro/ --env=APP_ID=com.obytes.preview --format junit - name: Upload artifacts if: always() diff --git a/.github/workflows/eas-build-preview.yml b/.github/workflows/eas-build-preview.yml index 4868fa207..00e9a3705 100644 --- a/.github/workflows/eas-build-preview.yml +++ b/.github/workflows/eas-build-preview.yml @@ -5,7 +5,7 @@ # ✍️ Description: # This workflow is used to trigger a build on EAS for the QA environment. # It will run on every GitHub release published on the repo or can be triggered manually from the actions tab. -# This workflow will use ./actions/eas-build action to trigger the build on EAS with staging env. +# This workflow will use ./actions/eas-build action to trigger the build on EAS with preview env. # 🚨 GITHUB SECRETS REQUIRED: # - EXPO_TOKEN: Expo token to authenticate with EAS