Pipeline Changes so that it runs properly on fork (#450)

This commit is contained in:
Ritesh Shukla
2025-07-20 22:09:02 +05:30
committed by GitHub
parent 5c1e7da145
commit 9499ecaa35
4 changed files with 62 additions and 23 deletions

View File

@@ -34,7 +34,7 @@ jobs:
~/.cache/turbo
android/.gradle
android/app/build
key: ${{ runner.os }}-gradle-turbo-${{ hashFiles('**/yarn.lock', '**/build.gradle') }}
key: ${{ runner.os }}-gradle-turbo-${{ hashFiles('**/yarn.lock', '**/build.gradle', '**/package.json', 'android/gradle/wrapper/**') }}
restore-keys: |
${{ runner.os }}-gradle-turbo-

49
.github/workflows/build-bundle.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
# .github/workflows/build-ios.yml
name: Build JS Bundle
on:
pull_request:
jobs:
build-bundle:
runs-on: macos-latest
steps:
- name: 🧾 Checkout repository
uses: actions/checkout@v4
- name: ⚙️ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: 📦 Install dependencies
run: yarn install --network-concurrency 1
- name: 🧩 Build JS bundle for iOS
run: |
mkdir -p ios/build
npx react-native bundle \
--platform ios \
--dev false \
--entry-file index.js \
--bundle-output ios/main.jsbundle \
--assets-dest ios
- name: 🧩 Build JS bundle for Android
run: |
mkdir -p android/app/src/main/assets
mkdir -p android/app/src/main/res
npx react-native bundle \
--platform android \
--dev false \
--entry-file index.js \
--bundle-output android/app/src/main/assets/index.android.bundle \
--assets-dest android/app/src/main/res

View File

@@ -1,6 +1,14 @@
name: Build iOS IPA
on:
workflow_dispatch:
pull_request:
paths:
- 'ios/**'
- Gemfile
- package.json
- yarn.lock
- .github/workflows/build-ios.yml
- .github/workflows/publish-beta.yml
jobs:
build-ios:

View File

@@ -11,8 +11,6 @@ jobs:
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.SIGNING_REPO_PAT }}
- name: 🖥 Setup Node 20
uses: actions/setup-node@v4
@@ -35,7 +33,7 @@ jobs:
~/.cache/turbo
android/.gradle
android/app/build
key: ${{ runner.os }}-gradle-turbo-${{ hashFiles('**/yarn.lock', '**/build.gradle') }}
key: ${{ runner.os }}-gradle-turbo-${{ hashFiles('**/yarn.lock', '**/build.gradle', '**/package.json', 'android/gradle/wrapper/**') }}
restore-keys: |
${{ runner.os }}-gradle-turbo-
@@ -44,21 +42,7 @@ jobs:
- name: 💬 Disable OTA Updates and Enable Maestro Build
run: node scripts/updateEnv.js OTA_UPDATE_ENABLED=false IS_MAESTRO_BUILD=true
- name: 🤫 Output TelemetryDeck Secrets to TelemetryDeck.json
run: |
echo "{" > telemetrydeck.json
echo "\"appID\": \"${{ secrets.TELEMETRYDECK_APPID }}\"," >> telemetrydeck.json
echo "\"clientUser\": \"anonymous\"," >> telemetrydeck.json
echo "\"app\": \"Jellify\"" >> telemetrydeck.json
echo "}" >> telemetrydeck.json
- name: 🤫 Output Glitchtip Secrets to Glitchtip.json
run: |
echo "{" > glitchtip.json
echo "\"dsn\": \"${{ secrets.GLITCHTIP_DSN }}\"" >> glitchtip.json
echo "}" >> glitchtip.json
- name: ✅ Validate Config Files
run: |
@@ -78,9 +62,7 @@ jobs:
run-maestro-tests:
runs-on: ubuntu-latest
needs: build-android
env:
JELLYFIN_TEST_ADDRESS: ${{ secrets.JELLYFIN_TEST_URL }}
JELLYFIN_TEST_USERNAME: ${{ secrets.JELLYFIN_TEST_USERNAME }}
steps:
- name: 🛒 Checkout
@@ -135,7 +117,7 @@ jobs:
disable-animations: false
avd-name: e2e_emulator
script: |
node scripts/maestro-android.js ${{ env.JELLYFIN_TEST_ADDRESS }} ${{ env.JELLYFIN_TEST_USERNAME }}
node scripts/maestro-android.js "https://jellyfin.jellify.app" "jerry"
- name: Store tests result
uses: actions/upload-artifact@v4.3.4
if: always()