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

ci: use public Sprocket action #180

Merged
merged 4 commits into from
Sep 19, 2024
Merged

ci: use public Sprocket action #180

merged 4 commits into from
Sep 19, 2024

Conversation

adthrasher
Copy link
Member

Switch to the public Sprocket action instead of installing Rust and Sprocket on the runner manually.

@adthrasher adthrasher self-assigned this Sep 19, 2024
@a-frantz
Copy link
Member

Should we run this twice? Once on "check mode" and once on "lint mode"? Also, maybe should be changed upstream (after I approved it 😬 ) but --deny-warnings doesn't need to be specified on top of --deny-notes. It probably makes more sense to collapse that into one argument with 3 options (fail on errors, warnings, or notes).

@adthrasher
Copy link
Member Author

Should we run this twice? Once on "check mode" and once on "lint mode"? Also, maybe should be changed upstream (after I approved it 😬 ) but --deny-warnings doesn't need to be specified on top of --deny-notes. It probably makes more sense to collapse that into one argument with 3 options (fail on errors, warnings, or notes).

We could certainly run it twice. For the arguments, GitHub Actions doesn't seem to support input typing at the action-level. A workflow can specify types (choice, boolean, and environment), but it doesn't appear that individual actions have that functionality.

@a-frantz
Copy link
Member

Should we run this twice? Once on "check mode" and once on "lint mode"? Also, maybe should be changed upstream (after I approved it 😬 ) but --deny-warnings doesn't need to be specified on top of --deny-notes. It probably makes more sense to collapse that into one argument with 3 options (fail on errors, warnings, or notes).

We could certainly run it twice. For the arguments, GitHub Actions doesn't seem to support input typing at the action-level. A workflow can specify types (choice, boolean, and environment), but it doesn't appear that individual actions have that functionality.

Well if there's no good way to collapse deny-warnings and deny-notes I guess that's fine. It's just not the friendliest interface.

@a-frantz
Copy link
Member

in sprocket check the template dir isn't being excluded properly. Once that's fixed I'll approve

@adthrasher
Copy link
Member Author

in sprocket check the template dir isn't being excluded properly. Once that's fixed I'll approve

Yeah, I'm unclear on why that is happening. When I run the same thing locally, it picks up the excluded patterns correctly. I'm working on a change to the action to address it.

@adthrasher adthrasher merged commit 85b2a1c into main Sep 19, 2024
33 of 34 checks passed
@adthrasher adthrasher deleted the sprocket_action branch September 19, 2024 17:16
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