name: Test on: push: branches: [main] paths-ignore: - '**.md' pull_request: branches: [main] paths-ignore: - '**.md' jobs: android-compile: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: set up JDK 17 uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 with: java-version: '17' distribution: 'temurin' - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 22 cache: 'yarn' cache-dependency-path: '**/yarn.lock' - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: | ~/.npm ~/node_modules ~/ci/node_modules ~/.config/yarn/global key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-node- - name: Enable Corepack run: corepack enable - name: Install dependencies run: | yarn install --immutable cd ci yarn install --immutable - name: Compile Android (Debug) working-directory: ./ci/android/ run: ./gradlew assembleDebug ios-compile: runs-on: macos-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 22 cache: 'yarn' cache-dependency-path: '**/yarn.lock' - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: | ~/.npm ~/node_modules ~/ci/node_modules ~/.config/yarn/global key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-node- - name: Cache gem bundle uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ./ci/vendor key: ${{ runner.os }}-gembundle-${{ hashFiles('**/Gemfile.lock') }} restore-keys: | ${{ runner.os }}-gembundle- - name: Cache cocoapods uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ./ci/ios/Pods key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} restore-keys: | ${{ runner.os }}-pods- - name: Enable Corepack run: corepack enable - name: Install dependencies run: | yarn install --immutable cd ci/ yarn install --immutable - name: Pods run: | cd ci/ios/ bundle install bundle exec pod update hermes-engine --no-repo-update bundle exec pod install --verbose - name: Compile iOS working-directory: ./ci/ios/ run: | set -o pipefail && \ xcodebuild -workspace ci.xcworkspace/ \ -scheme ci \ -destination generic/platform=iOS \ -configuration Debug \ -verbose \ CODE_SIGN_IDENTITY="" \ CODE_SIGNING_REQUIRED=NO \ CODE_SIGN_ENTITLEMENTS="" \ CODE_SIGNING_ALLOWED="NO" \ clean build | xcpretty