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 lint, pr, and release workflows #4

Merged
merged 2 commits into from
Oct 8, 2024
Merged

ci: add lint, pr, and release workflows #4

merged 2 commits into from
Oct 8, 2024

Conversation

nadiamoe
Copy link
Member

@nadiamoe nadiamoe commented Oct 8, 2024

This PR adds CI/CD workflows to this repo, namely a lint pipeline and a build/release pipeline.

The build/release pipeline is unified to avoid complex command duplication, and instead it just skips the uploading step if the context is that of a PR instead of a release being created.

@nadiamoe
Copy link
Member Author

nadiamoe commented Oct 8, 2024

Copy link

@ka3de ka3de left a comment

Choose a reason for hiding this comment

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

LGTM. Just a nit, no need to tackle that in this PR.

steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
Copy link

Choose a reason for hiding this comment

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

nit: Which configuration does this action use? It would make sense to make all the repos converge in the same linter configuration. I thought we did that for some repos when updating the makefiles etc, but that does not seem to be the case. If we want to do we could copy the one from sm-alerts repo, which I believe is the one that has been reviewed more recently.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ka3de Right now it is using the golangci defaults, it would be good to configure it. Feel free to open a PR with that config!

@nadiamoe nadiamoe merged commit 823a888 into main Oct 8, 2024
4 checks passed
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