-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[eas-build-job] Allow steps
in build jobs
#493
Conversation
920c968
to
e2ffd37
Compare
75a90c3
to
65f2537
Compare
356398d
to
465658d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it looks reasonable
export type PartialJob = z.infer<typeof PartialJobZ>; | ||
export const PartialJobZ = z.union([PathJobZ.partial(), StepsJobZ.partial()]); | ||
export const PartialJobZ = JobZ.partial(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why but I believe doing so broke some types in Turtle and that's why I did this weird union with partials inside as a workaround 🤔
Why
For workflows it'll be much easier to let users define
steps
in the workflow file instead of having to do the custom build config and stuff.How
Added ability to pass
steps
in build jobs. Alongside, we need to sendworkflowInteprolationContext
, so added that too.Test Plan
Tested manually by running both manual and GitHub workflow build jobs. Also ran a custom build and a regular build from
eas-cli
.