Skip to content
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

Merged
merged 7 commits into from
Jan 17, 2025

Conversation

sjchmiela
Copy link
Contributor

@sjchmiela sjchmiela commented Jan 14, 2025

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 send workflowInteprolationContext, 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.

Copy link

linear bot commented Jan 14, 2025

@sjchmiela sjchmiela force-pushed the stanley/eng-14684-add-steps-to-build-job branch from 920c968 to e2ffd37 Compare January 14, 2025 20:33
@sjchmiela sjchmiela force-pushed the stanley/eng-14684-add-steps-to-build-job branch from 75a90c3 to 65f2537 Compare January 16, 2025 14:24
@sjchmiela sjchmiela marked this pull request as ready for review January 16, 2025 14:25
@sjchmiela sjchmiela requested a review from szdziedzic as a code owner January 16, 2025 14:25
@sjchmiela sjchmiela force-pushed the stanley/eng-14684-add-steps-to-build-job branch from 356398d to 465658d Compare January 16, 2025 15:20
Copy link
Member

@szdziedzic szdziedzic left a 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();
Copy link
Member

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 🤔

@sjchmiela sjchmiela merged commit 1df3293 into main Jan 17, 2025
4 checks passed
@sjchmiela sjchmiela deleted the stanley/eng-14684-add-steps-to-build-job branch January 17, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants