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: add a github action for linting jsonnet #12527

Merged
merged 15 commits into from
Apr 16, 2024
Merged

Conversation

cstyan
Copy link
Contributor

@cstyan cstyan commented Apr 8, 2024

drone is still running our jsonnet linting job, we can migrate that to a github action

NOTE: for some reason the drone job doesn't fail, but locally or via the new github action here the linting will fail. I may update our jsonnet files to match the linting in this PR.

@cstyan cstyan requested a review from a team as a code owner April 8, 2024 21:59
Signed-off-by: Callum Styan <[email protected]>
@cstyan cstyan force-pushed the callum-additional-drone-removal branch from 9c65732 to 3549e37 Compare April 8, 2024 23:08
@pull-request-size pull-request-size bot added size/L and removed size/S labels Apr 10, 2024
Copy link
Collaborator

@trevorwhitney trevorwhitney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good other than the duplicate lint-jsonnet step. Can we remove that from here? If not we should move the mixin check to the other check pipeline.

go install github.com/monitoring-mixins/mixtool/cmd/mixtool@16dc166166d91e93475b86b9355a4faed2400c18
go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/[email protected]
- name: run linting
run: make BUILD_IN_CONTAINER=false lint-jsonnet
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're already linting jsonnet in the check action that runs for every PR, so we should remove this check again here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should be moving as much as possible out of the giant check action, I can remove the linting from that action in this PR?

@cstyan cstyan merged commit be1a772 into main Apr 16, 2024
12 checks passed
@cstyan cstyan deleted the callum-additional-drone-removal branch April 16, 2024 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants