mirror of
https://github.com/Jellify-Music/App.git
synced 2025-12-30 23:39:51 -06:00
Pipeline Changes so that it runs properly on fork (#450)
This commit is contained in:
2
.github/workflows/build-android.yml
vendored
2
.github/workflows/build-android.yml
vendored
@@ -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
49
.github/workflows/build-bundle.yml
vendored
Normal 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
|
||||
|
||||
|
||||
|
||||
8
.github/workflows/build-ios.yml
vendored
8
.github/workflows/build-ios.yml
vendored
@@ -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:
|
||||
|
||||
26
.github/workflows/maestro-test.yml
vendored
26
.github/workflows/maestro-test.yml
vendored
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user