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(lint): output warnings to both GitHub and stdout #530

Merged
merged 1 commit into from Jun 21, 2023

Conversation

antoineco
Copy link
Contributor

@antoineco antoineco commented Jun 20, 2023

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

By default, the golangci-lint Action outputs its findings via the GitHub API only. This is both useful and confusing. On one hand, warnings appear directly in the "Files changed" web view, in the context of the actual issue. On the other hand, warnings aren't highlighted in the output of the Action run.

image

We can now have the best of both worlds since golangci/golangci-lint-action#769:

image

@antoineco antoineco added the area/.github/workflows Issue or PR related to GitHub Actions workflows label Jun 20, 2023
Copy link
Member

@craciunoiuc craciunoiuc left a comment

Choose a reason for hiding this comment

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

All good here. Thanks!

Reviewed-by: Cezar Craciunoiu cezar.craciunoiu@unikraft.io
Approved-by: Cezar Craciunoiu cezar.craciunoiu@unikraft.io

@craciunoiuc craciunoiuc merged commit 1d5d486 into unikraft:staging Jun 21, 2023
2 of 3 checks passed
@antoineco antoineco deleted the ci/lint-output branch June 27, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/.github/workflows Issue or PR related to GitHub Actions workflows
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants