-
Notifications
You must be signed in to change notification settings - Fork 97
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
🤖 Have linting and make it required on every one of Kairos repositories #1234
Comments
Maybe we could have an action that runs our generic linters so it can be reused in all repos? |
A small sample of a composite action (that we already use) https://github.com/Luet-lab/luet-install-action |
ohh I like the idea, thanks for sharing guys |
Created a new repo for the action here: https://github.com/kairos-io/linting-composite-action |
@jimmykarily there's already https://github.com/kairos-io/kairos-linter sorry that I didn't put it here in the ticket. We can use either or, no preference for me but I had already done some progress on the one I mention |
Oops 🤦♂️ . I started with the same approach by using an Earthfile but then I couldn't find a way to tell Earthly "here is the Earthfile, here is the context dir" like you can do with docker. Let's sync tomorrow |
I also think we may need a "reusable workflow" instead of a "composite action" so that all our checks run and it doesn't stop on the first one that failed (as it happened here for example). For that to happen, we need to be able to define "jobs" instead of "steps". |
I created a reusable workflow here: https://github.com/kairos-io/linting-composite-action/blob/main/.github/workflows/reusable-linting.yaml and tried it out here: spectrocloud/peg#17 It seems to be working fine! |
Very nice, I'll remove the other repo |
part of: #1234 Signed-off-by: Dimitris Karakasilis <[email protected]>
part of: #1234 Signed-off-by: Dimitris Karakasilis <[email protected]>
Consume reusable linting workflow and fix linting errors part of: #1234 Signed-off-by: Dimitris Karakasilis <[email protected]>
as part of kairos-io/kairos#1234 Signed-off-by: Dimitris Karakasilis <[email protected]>
as part of kairos-io/kairos#1234 Signed-off-by: Dimitris Karakasilis <[email protected]>
as part of kairos-io/kairos#1234 --------- Signed-off-by: Dimitris Karakasilis <[email protected]>
Standards applied on the Kairos main repo should also be required on every other repository. There will be linting steps that might not make sense, those can be ignored, but we should to have this as a standard of our different codebases.
The text was updated successfully, but these errors were encountered: