Skip to content

Commit 3e6fe3a

Browse files
chore: update upstream to v9.0.0
2 parents 115ca4c + a8ded50 commit 3e6fe3a

149 files changed

Lines changed: 12282 additions & 2789 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Application Environment (development | preview | production)
2+
EXPO_PUBLIC_APP_ENV=development
3+
4+
# API Configuration
5+
EXPO_PUBLIC_API_URL=https://dummyjson.com/
6+
7+
# Example Variables
8+
EXPO_PUBLIC_VAR_NUMBER=10
9+
EXPO_PUBLIC_VAR_BOOL=true
10+
11+
# Build-time only secrets (no EXPO_PUBLIC prefix - NOT accessible in src folder)
12+
SECRET_KEY=my-secret-key
13+
APP_BUILD_ONLY_VAR=build-only-value
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# 🔗 Links:
2+
# Source file: https://github.com/obytes/react-native-template-obytes/blob/master/.github/actions/eas-build/action.yml
3+
# EAS Build docs: https://docs.expo.dev/eas-update/github-actions/
4+
5+
# ✍️ Description:
6+
# This is a composite action, which means it can be used in other actions.
7+
# This action is used to trigger an EAS Build for a specific environment (development, staging, production).
8+
# This action accepts those inputs:
9+
# `APP_ENV`, which is used to generate an APK for a specific environment (development, staging, production). We use staging by default.
10+
# `AUTO_SUBMIT`, false by default, set to true if you want to automatically submit your build to stores.
11+
# `EXPO_TOKEN`, required, access token for your Expo account. https://expo.dev/settings/access-tokens
12+
# `VERSION`, required, version of the app to build. used as the build message.
13+
# `ANDROID`, true by default, set to true if you don't want to trigger build for Android.
14+
# `IOS`, false by default, set to true if you want to trigger build for IOS.
15+
16+
# Before triggering the build, we run a pre-build script to generate the necessary native folders based on the APP_ENV.
17+
# Based on the ANDROID and IOS inputs, we trigger the build for the corresponding platform with the corresponding flags.
18+
19+
# 👀 Example usage:
20+
# - name: ⏱️ EAS Build
21+
# uses: ./.github/actions/eas-build
22+
# with:
23+
# APP_ENV: staging
24+
# EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
25+
# VERSION: ${{ github.event.release.tag_name }}
26+
# IOS: false
27+
28+
name: 'Setup EAS Build + Trigger Build'
29+
description: 'Setup EAS Build + Trigger Build'
30+
inputs:
31+
APP_ENV:
32+
description: 'APP_ENV (one of): development, staging, production'
33+
required: true
34+
default: staging
35+
AUTO_SUBMIT: # # TODO: we need to handle this too
36+
description: 'AUTO_SUBMIT (one of): true, false'
37+
required: true
38+
default: 'false'
39+
ANDROID:
40+
description: 'run for ANDROID (one of): true, false'
41+
required: true
42+
default: 'true'
43+
VERSION:
44+
description: VERSION
45+
required: true
46+
default: 0.0.0
47+
IOS:
48+
description: 'run for IOS (one of): true, false'
49+
required: true
50+
default: 'false'
51+
EXPO_TOKEN:
52+
description: EXPO_TOKEN
53+
required: true
54+
default: 'false'
55+
56+
runs:
57+
using: composite
58+
steps:
59+
- name: 💯 Check for EXPO_TOKEN
60+
run: |
61+
if [ -z "${{ inputs.EXPO_TOKEN }}" ]; then
62+
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions"
63+
exit 1
64+
fi
65+
shell: bash
66+
67+
- name: 📦 Setup Expo and EAS
68+
uses: expo/expo-github-action@v8
69+
with:
70+
eas-version: latest
71+
token: ${{ inputs.EXPO_TOKEN }}
72+
73+
- name: ⚙️ Run Prebuild
74+
run: pnpm prebuild:${{ inputs.APP_ENV }}
75+
shell: bash
76+
77+
- name: 📱 Run Android Build
78+
if: ${{ inputs.ANDROID == 'true' }}
79+
run: pnpm build:${{ inputs.APP_ENV }}:android --non-interactive --no-wait --message "Build ${{ inputs.APP_ENV }} ${{ inputs.VERSION }}"
80+
shell: bash
81+
82+
- name: 📱 Run IOS Build
83+
if: ${{ inputs.IOS == 'true' }}
84+
run: pnpm build:${{ inputs.APP_ENV }}:ios --non-interactive --no-wait --message "Build ${{ inputs.APP_ENV }} ${{ inputs.VERSION }}"
85+
shell: bash

.github/actions/setup-jdk-generate-apk/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ inputs:
2121
APP_ENV:
2222
description: 'APP_ENV (one of): development, staging, production'
2323
required: true
24-
default: 'staging'
24+
default: staging
2525

2626
runs:
27-
using: 'composite'
27+
using: composite
2828
steps:
2929
- name: Set Up JDK
3030
uses: actions/setup-java@v3
3131
with:
32-
distribution: 'zulu' # See 'Supported distributions' for available options
32+
distribution: zulu # See 'Supported distributions' for available options
3333
java-version: '17'
3434
- name: Setup Gradle
3535
uses: gradle/gradle-build-action@v2

.github/actions/setup-node-pnpm-install/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
name: 'Setup Node + PNPM + Install Dependencies'
1515
description: 'Setup Node + PNPM + Install Dependencies'
1616
runs:
17-
using: 'composite'
17+
using: composite
1818
steps:
1919
- uses: pnpm/action-setup@v4
2020
name: Install pnpm
@@ -24,7 +24,7 @@ runs:
2424
name: Install Node.js
2525
with:
2626
node-version: 20
27-
cache: 'pnpm'
27+
cache: pnpm
2828

2929
- name: 📦 Install Project Dependencies
3030
run: pnpm install --frozen-lockfile

.github/workflows/e2e-android-eas-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
inputs:
1818
apk-url:
1919
type: string
20-
description: 'EAS APK URL'
20+
description: EAS APK URL
2121
required: true
2222
default: ''
2323

@@ -49,7 +49,7 @@ jobs:
4949
fetch-depth: 0
5050

5151
- name: 📦 Install Maestro
52-
run: npm run install-maestro ## We use npm because we don't need to install deps again
52+
run: npm run install-maestro # # We use npm because we don't need to install deps again
5353

5454
- name: Download Test APK
5555
uses: actions/download-artifact@v3

.github/workflows/e2e-android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
fetch-depth: 0
5858

5959
- name: 📦 Install Maestro
60-
run: npm run install-maestro ## We use npm because we don't need to install deps again
60+
run: npm run install-maestro # # We use npm because we don't need to install deps again
6161

6262
- name: Download Test APK
6363
uses: actions/download-artifact@v3

.github/workflows/expo-doctor.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ on:
1616
- main
1717
- master
1818
paths:
19-
- 'package.json'
20-
- 'pnpm-lock.yaml'
19+
- package.json
20+
- pnpm-lock.yaml
2121
pull_request:
2222
paths:
23-
- 'package.json'
24-
- 'pnpm-lock.yaml'
23+
- package.json
24+
- pnpm-lock.yaml
2525

2626
permissions:
2727
contents: read
2828
pull-requests: write
29-
29+
3030
jobs:
3131
doctor:
3232
name: Expo Doctor (expo)

.github/workflows/lint-ts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
permissions:
2222
contents: read
2323
pull-requests: write
24-
24+
2525
jobs:
2626
lint:
2727
name: Lint TS (eslint, prettier)

.github/workflows/stale.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
permissions:
88
contents: read
99
pull-requests: write
10-
10+
1111
jobs:
1212
stale:
1313
runs-on: ubuntu-latest
@@ -16,9 +16,9 @@ jobs:
1616
- uses: actions/stale@v1
1717
with:
1818
repo-token: ${{ secrets.GITHUB_TOKEN }}
19-
stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days'
20-
stale-pr-message: 'This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days'
21-
stale-issue-label: 'no-issue-activity'
22-
stale-pr-label: 'no-pr-activity'
19+
stale-issue-message: This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days
20+
stale-pr-message: This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days
21+
stale-issue-label: no-issue-activity
22+
stale-pr-label: no-pr-activity
2323
days-before-stale: 60
2424
days-before-close: 14

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
if: (success() || failure()) && github.event_name == 'pull_request'
4444
with:
4545
coverage-summary-path: ./coverage/coverage-summary.json
46-
summary-title: '💯 Test Coverage'
46+
summary-title: 💯 Test Coverage
4747
badge-title: Coverage
4848
create-new-comment: false
4949
junitxml-title: 😎 Tests Results

0 commit comments

Comments
 (0)