-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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] Run hardhat tests as a PR check #12165
Conversation
7e4cc49
to
b0a7dcc
Compare
There are two open hardhat PRs that need to be merged first:
Also, I made it a PR check because it's pretty fast (runs in under a minute) but given that this depends on Hardhat's |
babc762
to
ab31437
Compare
All dependent issues have been resolved on Hardhat side and now |
# NOTE: This is expected to work without running `yarn build` first. | ||
cd hardhat/packages/hardhat-core | ||
yarn test |
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.
The comment #9237 (comment) mentioned running scripts/run-tests-with-custom-solc.sh
. Would yarn test
also work?
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.
Are you asking if yarn test
is enough or that it should be used?
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.
It works. I took these commands from that script. The commands are simple enough that I think that it's better to run them directly. It also makes it possible to have separate steps in CI for more readable output.
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.
Ah, just looked at the script. Nice.
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.
LGTM
Fixes #10854.
Depends on NomicFoundation/hardhat#1962.Fixed.Depends on NomicFoundation/hardhat#1969.Fixed.Depends on NomicFoundation/hardhat#1974.Fixed.