-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
meta: forge init
improvements
#1132
Comments
For (3), what dispatch triggers should the workflow have? I agree it would be good to include, but I suggest that since it's being automatically added, only a |
I'm all for moving the test directory up a level. |
I agree, moving the tests to root makes sense and it wouldn't break anything since we would still run tests in |
Just noting here that "Verifies all non-test contracts are below the size limit" can now be implemented |
Is it possible to first have an empty commit then the actual forge init commit when creating a repo? Maybe also a flag for --makefile/--justfile or even --template-url |
Yes, I really don't think we should start cluttering init with a bunch of |
Going to close this issue. I think the existing simple |
Component
Forge
Describe the feature you would like
Here are some small changes that I think would improve the quality of
forge init
:test
to the root instead of nested withinsrc
. This scales better for large projects and is a little more explicit about where tests arefoundry.toml
by only including things users are more likely to change. For example, most users don't need to worry about remappings so those can be removed (I think they may have been already?). Most people don't change the folder structure so that can probably be removed too. Include adefault
andci
profile that specify e.g. 100 and 10,000 runs respectivelyFOUNDRY_PROFILE=ci forge test
forge test --sweep
to run tests against all solc versions compatible with pragmas #1131forge build --verify-sizes
to return a pass/fail on whether src contracts are below the size limit #11330.8.10
. This should be bumped and loosened to^0.8.13
I can see an argument against (3) since not everyone uses github. But it's very rare I come across gitlab or bitbucket repos, and it's easy to remove the workflow, so I think this tradeoff is worth it
Additional context
No response
The text was updated successfully, but these errors were encountered: