Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Conversation

@darioush
Copy link

@darioush darioush commented Dec 26, 2024

Copying this check from subnet-evm to ensure mocks are up to date.

@darioush darioush marked this pull request as ready for review December 26, 2024 17:55
@darioush darioush requested review from a team and ceyonur as code owners December 26, 2024 17:56
Copy link
Contributor

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

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

Great, I was about to do it after our little mock conversation 😄 Thanks!

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
Copy link
Contributor

Choose a reason for hiding this comment

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

We can use v5 😉

Suggested change
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5

- uses: actions/setup-go@v4
with:
go-version: ${{ env.min_go_version }}
check-latest: true
Copy link
Contributor

Choose a reason for hiding this comment

The 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
check-latest: true

- shell: bash
run: scripts/mock.gen.sh
- shell: bash
run: .github/workflows/check-clean-branch.sh
Copy link
Contributor

@qdm12 qdm12 Dec 27, 2024

Choose a reason for hiding this comment

The 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
run: .github/workflows/check-clean-branch.sh
run: |
git update-index --really-refresh >> /dev/null
git diff --exit-code

Also do we really need git update-index --really-refresh >> /dev/null? I never had the use case, I think git diff --exit-code should suffice to find diffs and exit with 1 if any diff is found.

EDIT: Happy to do the "sibling PR" in subnet-evm to have the same thing.

Copy link
Author

Choose a reason for hiding this comment

The 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)

@qdm12
Copy link
Contributor

qdm12 commented Dec 30, 2024

Bundled within #721 so closing this 😉

@qdm12 qdm12 closed this Dec 30, 2024
@qdm12 qdm12 deleted the mockgen-ci branch December 30, 2024 16:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants