[eas-cli][build-tools][steps] Validate local composite functions referenced from workflow hooks; extract the shared loader into steps - #4064
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4064 +/- ##
==========================================
- Coverage 62.43% 62.42% -0.00%
==========================================
Files 1009 1008 -1
Lines 45737 45712 -25
Branches 9622 9622
==========================================
- Hits 28550 28530 -20
+ Misses 15726 15721 -5
Partials 1461 1461 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
a32c830 to
cc4a09e
Compare
cc4a09e to
9f8972c
Compare
9f8972c to
9a9c633
Compare
9a9c633 to
a4a94b7
Compare
a4a94b7 to
3cb953a
Compare
3cb953a to
bc5f0bb
Compare
bc5f0bb to
bc5dee9
Compare
bc5dee9 to
51157f3
Compare
51157f3 to
6f6441f
Compare
6f6441f to
e6a3b9a
Compare
2fa436b to
ba6e97f
Compare
ba6e97f to
eb63c1a
Compare
|
Also, moving an open discussion from the previous eas-cli PR in the stack: #4064 |
eb63c1a to
5038af8
Compare
5038af8 to
c3e6849
Compare
51c7e4c to
a78602b
Compare
steps
2c769a5 to
f40e28c
Compare
f40e28c to
d3a4b3a
Compare
🤖 AI code reviewDecision: Approve with comments Overall PR risk: Medium. The change moves composite-function loading logic from eas-cli and build-tools into the shared 🟡 Warning (1)
This review is advisory — it never blocks a merge and never auto-approves. |
|
Re. AI review:
That's a deliberate skip. Validating it would need injecting the vcs client. Will change it if human reviewers advise doing so
Not specific to this PR, worth considering as a follow up
not specific to this PR, a general pattern
It does hold up, but it was deliberate: we can only do static verification here, so that's the only way we can check those functions within |
|
Subscribed to pull request
Generated by CodeMention Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead. |
|
✅ Thank you for adding the changelog entry! |
Why
Workflow validation already checks local composite functions referenced from job steps, but hooks can also use
uses: ./.....eas workflow:validatedon't catch problems with composite functions in hooks.This PR also includes an extraction of duplicated (eas-cli and build-tools) composite function loader to
@expo/steps.How
Validation of workflows in
eas-clinow reads each job'shookssteps too, not justjob.steps.Removed a duplicate loader from
eas-cliandbuild-tools, moved it tosteps.Test Plan
Added unit tests.