-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
Add act
to Pants (all in BUILD) and smoke test our workflows
#19278
Conversation
Not being able to test locally is one of the main reasons I hate updating our workflows. So yay! |
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.
Huzzah!
|
||
file( | ||
name="downloaded-act", | ||
source=per_platform( |
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.
This right here is the business!
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 tried doing something similar with GH, but it was sometimes a tar, sometimes not, and just didn't seem worth it at the time.
Maybe I'll try again as well ..
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.
Sweet!
This is groundwork for/from #19230.
Not only can we have devs run
act
now (without having to install it 😄 (kudos to @chrisjrn 's work in adhoc/shell) but we can smoke test our workflows.My local testing using
act
has actually bore much fruit. Several bugs were caught that existed solely in the YAML file itself. A history of theworkflows
file shows PRs that mirror my own findings: It's damn hard to test actions. Although this addition represents semi-significant cognitive burden ofact
and what goes into smoke testing, I think it's worth it to avoid the large churn that comes with authoring/editing actions. And I want to author more actions (because automation is bae).So, here's the foundation 😄