-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
[Enhancement]: replace manual mocks #2765
Comments
We must make sure there is a build command to do this 🙏 |
I'd go one step further and ensure we validate they are up to date in CI. My general preference is to have all of this handled by |
sure, the local build must do exactly the same as in the CI, so that developers can replicate what the CI does. So:
|
Yer this would be an example of github action to validate: - name: Install dependencies
run: |
go install github.com/vektra/mockery/[email protected]
- name: Validate go mod / generate
run: |
go generate ./...
go mod tidy
git --no-pager diff && [[ 0 -eq $(git status --porcelain | wc -l) ]] Updating locally would be: go generate ./... |
Sounds good to me. I'm labelling this as a quick-win |
Add generation for mocks, which can be run using make generate or go generate ./... Correct output-format for golangci-lint as githubs-actions has been replaced by colored-line-numbers. Add pre-commit target to help check code is valid before pushing. Ensure generate and mod tidy don't result in changes. Run go mod tidy for all modules, some were out of date. Implements: #2765
Has anyone stepped up to work on this? If not, I would like to volunteer as a first-time contributor to this repo! |
Yep I have some work in progress on this but ran into some additional inconsistencies. Need to get some time to split it out |
Proposal
Replace all manual mocks with generated ones, as started by #2731
The text was updated successfully, but these errors were encountered: