Skip to content

Align workspace dev commands in root dev.yml#69

Open
kyle-schellen wants to merge 1 commit into
05-11-move_react_native_dev_commands_under_root_dev.ymlfrom
05-12-align_workspace_dev_commands_in_root_dev.yml
Open

Align workspace dev commands in root dev.yml#69
kyle-schellen wants to merge 1 commit into
05-11-move_react_native_dev_commands_under_root_dev.ymlfrom
05-12-align_workspace_dev_commands_in_root_dev.yml

Conversation

@kyle-schellen
Copy link
Copy Markdown

@kyle-schellen kyle-schellen commented May 12, 2026

Closes issue #908.

What changes

Adds repo-wide commands (build, test, lint, format, check) to the root dev.yml. Makes format canonical with fix aliased. Adds AGENTS.md guidance.

Audit follow-ups in the same diff:

  • dev android check delegates to lint + check license-headers (was inline gradle)
  • dev android api exits 1 on missing subcommand
  • Drops redundant dev swift build packages
  • dev react-native format desc clarifies Swift bridge only scope

How to test

From the repo root:

  • dev build, dev test, dev lint, dev format, dev check run across all platforms
  • dev android clean, dev swift clean, dev react-native clean clean build artifacts
  • dev protocol build, dev protocol test, dev protocol check
  • dev <platform> format works; fix alias preserved
  • dev android api with no subcommand prints usage and exits 1
  • dev android check runs license-headers + lint via delegation

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 platforms/swift/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.

@kyle-schellen kyle-schellen self-assigned this May 12, 2026
@kyle-schellen kyle-schellen marked this pull request as draft May 12, 2026 15:43
@kyle-schellen kyle-schellen changed the base branch from main to 05-11-move_react_native_dev_commands_under_root_dev.yml May 12, 2026 15:51
@kyle-schellen kyle-schellen changed the title 05 12 align workspace dev commands in root dev.yml Align workspace dev commands in root dev.yml May 12, 2026
@kyle-schellen kyle-schellen force-pushed the 05-12-align_workspace_dev_commands_in_root_dev.yml branch from 7077869 to c4188d2 Compare May 12, 2026 16:23
@kyle-schellen kyle-schellen added the #gsd:50662 Rebase Checkout Kit on UCP label May 12, 2026
@kyle-schellen kyle-schellen requested a review from a team May 12, 2026 16:30
@kyle-schellen kyle-schellen force-pushed the 05-12-align_workspace_dev_commands_in_root_dev.yml branch from c4188d2 to cf8541b Compare May 12, 2026 16:37
@kyle-schellen kyle-schellen force-pushed the 05-11-move_react_native_dev_commands_under_root_dev.yml branch from f9cf466 to 79b74a1 Compare May 12, 2026 16:37
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

React Native — Coverage Report

Lines Statements Branches Functions
Coverage: 99%
99.53% (214/215) 95.96% (119/124) 100% (64/64)

@kyle-schellen kyle-schellen marked this pull request as ready for review May 12, 2026 16:53
@kyle-schellen kyle-schellen force-pushed the 05-11-move_react_native_dev_commands_under_root_dev.yml branch from 79b74a1 to fa6fa57 Compare May 12, 2026 17:41
@kyle-schellen kyle-schellen force-pushed the 05-12-align_workspace_dev_commands_in_root_dev.yml branch 2 times, most recently from cf27458 to ea11c12 Compare May 12, 2026 18:22
@kyle-schellen kyle-schellen force-pushed the 05-11-move_react_native_dev_commands_under_root_dev.yml branch from fa6fa57 to 87da5c4 Compare May 12, 2026 18:22
supported_exts = %w[.swift .h .mm .java .js .ts .tsx]

Find.find(dir) do |path|
next if path.include?('/build/generated/')
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This keeps the RN license check focused on source-controlled files. Generated Android build output can exist locally after builds/codegen and does not reliably include our license header, which made dev check depend on local build state

@@ -292,7 +292,7 @@ class RCTShopifyCheckoutSheetKit: RCTEventEmitter, CheckoutDelegate {
return NSNumber(value: available)
}

@objc func initiateGeolocationRequest(_ allow: Bool) {
@objc func initiateGeolocationRequest(_: Bool) {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Root dev check surfaced an existing SwiftFormat issue. The parameter is intentionally unused, so _ is the correct shape here.

@kyle-schellen kyle-schellen force-pushed the 05-12-align_workspace_dev_commands_in_root_dev.yml branch from ea11c12 to f46976e Compare May 12, 2026 19:27
@kyle-schellen kyle-schellen force-pushed the 05-11-move_react_native_dev_commands_under_root_dev.yml branch from 87da5c4 to 3604836 Compare May 12, 2026 21:37
@kyle-schellen kyle-schellen force-pushed the 05-12-align_workspace_dev_commands_in_root_dev.yml branch 2 times, most recently from 2b1514e to 9514af8 Compare May 12, 2026 22:22
@kyle-schellen kyle-schellen force-pushed the 05-12-align_workspace_dev_commands_in_root_dev.yml branch from 9514af8 to de4dcf6 Compare May 13, 2026 00:07
Comment thread AGENTS.md

## Dev workflow

Run `dev` commands from the repo root. Use `dev up` before running commands when
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if you've had success with this locally but I think telling it to use shadoenv and where to get dev from helped with certain ai sandboxing

All commands require `shadowenv exec --` prefix. 
shadowenv exec --dir DIR -- /opt/dev/bin/dev up
shadowenv exec --dir DIR -- /opt/dev/bin/dev test [ARGS]

Comment thread README.md
- [Privacy compliance](https://shopify.dev/docs/storefronts/mobile/checkout-kit/privacy-compliance) - pass GDPR, CCPA, and ATT consent through to Shopify.
- [Accelerated checkouts](https://shopify.dev/docs/storefronts/mobile/checkout-kit/accelerated-checkouts?extension=react-native) - Shop Pay and Apple Pay buttons for one-tap purchase on product and cart pages.

## Development
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can move this section into the CONTRIBUTING.md to help keep the readme slim

Comment thread dev.yml
run: cd platforms/swift && ./Scripts/lint fix
clean:
desc: Clean Swift package build artifacts
run: cd platforms/swift && ./Scripts/xcode_run clean ShopifyCheckoutKit-Package
Copy link
Copy Markdown
Contributor

@kieran-osgood-shopify kieran-osgood-shopify May 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd make sense to add in a clean on the sample app and the ShopifyAcceleratedCheckouts package here too

Comment thread dev.yml
run: |
echo "Usage: dev swift build {packages|samples}"
desc: Build the Swift package
run: cd platforms/swift && ./Scripts/xcode_run build ShopifyCheckoutKit-Package
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar to above, I think we should build the main package (which you're doing), the AcceleratedCheckouts package, as well as the sample app (sample app acts as an integration compilation check)

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