Bump lint-staged from 16.2.7 to 16.4.0 #2692
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Android APK | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/build-android.yml' | |
| - 'android/**' | |
| - 'package.json' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-android: | |
| runs-on: macos-15 | |
| steps: | |
| - name: 🛒 Checkout | |
| uses: actions/checkout@v6 | |
| - name: 🖥 Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.4 | |
| - name: 💎 Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.0' # Match your local Ruby version | |
| bundler-cache: true | |
| - name: 💬 Echo package.json version to Github ENV | |
| run: echo VERSION_NUMBER=$(bun -p "require('./package.json').version") >> $GITHUB_ENV | |
| - name: 🔑 Decode and setup release keystore | |
| continue-on-error: true | |
| run: | | |
| if [ -n "${{ secrets.ANDROID_SIGNING_BASE64 }}" ]; then | |
| echo "${{ secrets.ANDROID_SIGNING_BASE64 }}" | base64 --decode > android/app/jellify.keystore | |
| echo "Release keystore created" | |
| else | |
| echo "No keystore secret found, will use debug keystore" | |
| fi | |
| - name: 📦 Cache node_modules | |
| uses: actions/cache@v5 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-node_modules-${{ hashFiles('**/bun.lock', 'patches/**') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node_modules- | |
| - uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| ~/.cache/turbo | |
| android/.gradle | |
| android/app/build | |
| key: ${{ runner.os }}-gradle-turbo-${{ hashFiles('**/build.gradle') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle-turbo- | |
| - name: 🤖 Run bun init-android | |
| run: bun i | |
| - name: 🚀 Run turbo build | |
| run: bun android-build | |
| env: | |
| KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} | |
| KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }} | |
| KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }} | |
| - name: 📦 Upload APK for testing | |
| uses: actions/upload-artifact@v6 | |
| if: always() | |
| with: | |
| name: jellify-android-pr-${{ github.event.number }}-${{ env.VERSION_NUMBER }} | |
| path: | | |
| android/app/build/outputs/apk/release/*.apk | |
| retention-days: 7 | |
| if-no-files-found: warn |