[eas-build-job] Add local action schema and utils#3928
Draft
sswrk wants to merge 1 commit into
Draft
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jul 1, 2026
622179a to
ff953ae
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3928 +/- ##
==========================================
+ Coverage 59.28% 59.34% +0.07%
==========================================
Files 935 936 +1
Lines 41093 41179 +86
Branches 8660 8677 +17
==========================================
+ Hits 24356 24433 +77
- Misses 16643 16652 +9
Partials 94 94 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ff953ae to
77773ec
Compare
77773ec to
d1bbabd
Compare
|
⏩ The changelog entry check has been skipped since the "no changelog" label is present. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
First step toward local actions for EAS Workflows: reusable step groups referenced via
uses:in.eas/workflows/*.yml, similar to GitHub Actions.This PR adds the shared contract in
@expo/eas-build-jobso all consumers agree on action config shape and local action references.How
Introduce the action config schema and shared utilities in
@expo/eas-build-job: validation, local reference parsing, transitive catalog building with cycle detection, and safe path resolution within the EAS project root. No runtime behavior changes yet.Added utilities:
ActionConfigZ/validateActionConfig: Zod schema and validator foraction.ymlparseActionReference,normalizeActionReference,isActionReference,isLocalActionReference: distinguish./local actions from built-inuses:values likeeas/buildcollectActionReferencesFromSteps: extract local action refs from a step listbuildActionCatalogFromStepsAsync: transitively load actions via injectedActionLoader, with cycle detectionresolveLocalActionPath: resolve a localuses:ref to an absolute path within the EAS project root (any./-prefixed location, not just.eas/actions/)getActionNotFoundError,getActionOutsideProjectError,getActionCycleError,getWorkflowLocalActionsMissingError,getWorkflowLocalActionsCycleError: shared user-facing error copyTest Plan
Added unit tests.