fix(deps): update react-native monorepo to v0.87.1 #1356
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: Android Build Check | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'apps/mobile/**' | |
| - '!fastlane/**' | |
| - 'packages/shared/**' | |
| - 'package-lock.json' | |
| - '.nvmrc' | |
| - '.github/workflows/build-check.yml' | |
| - '.github/actions/setup-build/**' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'apps/mobile/**' | |
| - '!fastlane/**' | |
| - 'packages/shared/**' | |
| - 'package-lock.json' | |
| - '.nvmrc' | |
| - '.github/workflows/build-check.yml' | |
| - '.github/actions/setup-build/**' | |
| concurrency: | |
| group: build-check-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Lint & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Validate the Gradle wrapper JAR | |
| uses: gradle/actions/wrapper-validation@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0 | |
| - name: Check the wrapper JAR matches the declared Gradle version | |
| run: | | |
| cd apps/mobile/android | |
| version=$(sed -n 's/^distributionUrl=.*gradle-\([0-9][0-9.]*\)-\(bin\|all\)\.zip$/\1/p' gradle/wrapper/gradle-wrapper.properties) | |
| if [ -z "$version" ]; then | |
| echo "Could not read the Gradle version from gradle-wrapper.properties" | |
| exit 1 | |
| fi | |
| url="https://services.gradle.org/distributions/gradle-$version-wrapper.jar.sha256" | |
| expected=$(curl -fsSL --retry 3 --retry-all-errors --max-time 30 "$url" || true) | |
| if [ -z "$expected" ]; then | |
| echo "::warning::Could not reach services.gradle.org, skipping the version match check" | |
| exit 0 | |
| fi | |
| actual=$(sha256sum gradle/wrapper/gradle-wrapper.jar | cut -d' ' -f1) | |
| if [ "$actual" != "$expected" ]; then | |
| echo "gradle-wrapper.jar does not match Gradle $version." | |
| echo " expected $expected" | |
| echo " actual $actual" | |
| echo "Whoever changed distributionUrl did not regenerate the JAR. Run:" | |
| echo " cd apps/mobile/android && ./gradlew wrapper --gradle-version $version" | |
| exit 1 | |
| fi | |
| echo "gradle-wrapper.jar matches Gradle $version" | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-build | |
| - name: Check dependency graph resolves | |
| run: npm install --dry-run | |
| - name: Run ESLint | |
| run: npm run lint -w @colota/mobile | |
| - name: Run TypeScript check | |
| run: npx -w @colota/mobile tsc --noEmit | |
| - name: Run tests | |
| run: npm test -w @colota/mobile | |
| - name: Run Kotlin unit tests | |
| run: | | |
| cd apps/mobile/android | |
| chmod +x gradlew | |
| ./gradlew testGmsDebugUnitTest testFossDebugUnitTest --no-daemon | |
| build-gms: | |
| name: Build GMS Debug APK | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-build | |
| - name: Build GMS Debug APK | |
| run: | | |
| cd apps/mobile/android | |
| chmod +x gradlew | |
| ./gradlew assembleGmsDebug --no-daemon | |
| build-foss: | |
| name: Build FOSS Debug APK | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-build | |
| - name: Build FOSS Debug APK | |
| run: | | |
| cd apps/mobile/android | |
| chmod +x gradlew | |
| ./gradlew assembleFossDebug --no-daemon |