Skip to content

caching tweaks in the rn build#182

Merged
kiftio merged 1 commit into
mainfrom
build-caching-tweaks
May 21, 2026
Merged

caching tweaks in the rn build#182
kiftio merged 1 commit into
mainfrom
build-caching-tweaks

Conversation

@kiftio

@kiftio kiftio commented May 21, 2026

Copy link
Copy Markdown
Contributor

What changes are you making?

  • Add Gradle dependency/wrapper caching to React Native Android build and test jobs
  • Add CocoaPods caching to the React Native iOS build job, matching the iOS test job
  • Remove .turbo cache steps that were never saving because .turbo is not created by these workflows

Context

The RN CI logs showed that package-manager caches were already effective, but some native setup work was still cold:

  • pnpm and Bundler caches were hitting
  • iOS tests had a working CocoaPods cache, but iOS build did not
  • Android RN jobs downloaded Gradle distributions during the job
  • .turbo cache steps reported path validation warnings because no cache path existed

This keeps the change conservative: cache dependency/setup layers for PR/sample validation, but avoid riskier native build-output caches such as Xcode DerivedData, Gradle task outputs, NDK directories, or compiler caches.

Testing

  • Parsed edited workflow YAML files with Ruby
  • Ran git diff --check
  • ran actionlint

How to test

Run builds

Before you merge

Important

  • I've added tests to support my implementation
  • I have read and agree with the Contribution Guidelines
  • I have read and agree with the Code of Conduct
  • I've updated the relevant platform README (platforms/swift/README.md and/or platforms/android/README.md)

Releasing a new Swift version?
  • I have bumped the version in ShopifyCheckoutKit.podspec
  • I have bumped the version in platforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swift
  • I have updated platforms/swift/CHANGELOG.md
  • I have updated the SwiftPM/CocoaPods version snippets in platforms/swift/README.md (major version only)
Releasing a new Android version?
  • I have bumped the versionName in platforms/android/lib/build.gradle
  • I have updated platforms/android/CHANGELOG.md
  • I have updated the Gradle/Maven version snippets in platforms/android/README.md

Tip

See the Contributing documentation for the full release process per platform.

@kiftio kiftio requested a review from a team as a code owner May 21, 2026 12:03
@github-actions

github-actions Bot commented May 21, 2026

Copy link
Copy Markdown

React Native — Coverage Report

Lines Statements Branches Functions
Coverage: 95%
95.26% (181/190) 92.03% (104/113) 100% (56/56)

@kiftio kiftio merged commit aa7ab6c into main May 21, 2026
38 checks passed
@kiftio kiftio deleted the build-caching-tweaks branch May 21, 2026 12:40
@kiftio kiftio added the #gsd:50662 Rebase Checkout Kit on UCP label May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants