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

chore(ci): move vet to GitHub Action #6911

Merged
merged 7 commits into from Oct 24, 2022
Merged

Conversation

noahdietz
Copy link
Contributor

@noahdietz noahdietz commented Oct 24, 2022

Moves the existing vet.sh script and execution (presubmit and continuous) to GitHub Actions (execute on Pull Requests and Pushes on main).

Note: The GitHub Action dictates which version of Go the script is executed with. Currently it is our "latest" which is Go 1.19. I removed the Go version guard in vet.sh since it will only ever be executed on the version we dictate, rather than both earliest a& latest like with Kokoro.

I think that we should consider executing vet only on changed directories instead of the entire repository, similar to how apidiff works. That is an improvement we can make later though. This is just a start.

Fixes #6135

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Oct 24, 2022
@noahdietz noahdietz marked this pull request as ready for review October 24, 2022 16:54
@noahdietz noahdietz requested a review from a team as a code owner October 24, 2022 16:54
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: m Pull request size is medium. labels Oct 24, 2022
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

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

LGTM

@noahdietz noahdietz added the automerge Merge the pull request once unit tests and other checks pass. label Oct 24, 2022
@noahdietz noahdietz merged commit c2bfae3 into googleapis:main Oct 24, 2022
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Oct 24, 2022
@noahdietz noahdietz deleted the vet-workflow branch October 24, 2022 21:11
kimihrr pushed a commit to kimihrr/google-cloud-go-kimia that referenced this pull request Oct 25, 2022
* chore(ci): move vet to GitHub Action

* vet on main

* dedupe vet.sh

Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore(ci): move linting presubmit from kokoro into GitHub Actions
2 participants