Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/actions/eas-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/setup-jdk-generate-apk/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@
# ✍️ 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`.

# 👀 Example usage:
# - 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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-android-eas-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-android-maestro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/e2e-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/eas-build-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down