-
Notifications
You must be signed in to change notification settings - Fork 160
add mockgen check for CI #720
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/bin/bash | ||
| # Exits if any uncommitted changes are found. | ||
|
|
||
| set -o errexit | ||
| set -o nounset | ||
| set -o pipefail | ||
|
|
||
| git update-index --really-refresh >> /dev/null | ||
| git diff-index --quiet HEAD |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -123,3 +123,16 @@ jobs: | |||||||||
| with: | ||||||||||
| name: tmpnet-data | ||||||||||
| path: ~/.tmpnet/networks/1000 | ||||||||||
| mock_gen: | ||||||||||
| name: MockGen Check | ||||||||||
| runs-on: ubuntu-latest | ||||||||||
| steps: | ||||||||||
| - uses: actions/checkout@v4 | ||||||||||
| - uses: actions/setup-go@v4 | ||||||||||
| with: | ||||||||||
| go-version: ${{ env.min_go_version }} | ||||||||||
| check-latest: true | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So we use the Go version specified and not the latest
Suggested change
|
||||||||||
| - shell: bash | ||||||||||
| run: scripts/mock.gen.sh | ||||||||||
| - shell: bash | ||||||||||
| run: .github/workflows/check-clean-branch.sh | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not directly inline the script content in there + remove .github/workflows/check-clean-branch.sh (one less file is always a win 😄)
Suggested change
Also do we really need EDIT: Happy to do the "sibling PR" in subnet-evm to have the same thing.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just copied this from avalanchego repo which has this check. Not sure that it's needed. IMO we can close this PR and handle it in #721 (comment) |
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use v5 😉