Skip to content
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

Add FOUNDRY_PROFILE in the GitHub action to use a ci profile #7

Open
cleanunicorn opened this issue Apr 1, 2022 · 0 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@cleanunicorn
Copy link
Owner

cleanunicorn commented Apr 1, 2022

Context

Because Foundry allows different profiles to be used when using it, we can make use of that with using the env variable FOUNDRY_PROFILE.

Details

Typically you'd want to have as much information as possible to debug a failed action. We can achieve this by adding a specific CI profile in foundry.toml and enabling that in the GitHub action config.

At the moment it seems like one would need to update foundry.toml and ci.yml to create the profile (with additional verbosity) and enable it while the action is running

Alternatives

One could run the profile locally by running

$ FOUNDRY_PROFILE=ci make test

However, this does not achieve the desired results since, locally one has the possibility to actively debug and retrieve more info.

Security concerns

Not sure if there are any concerns regarding this. Maybe publicly dumping some secret variables if the config is not properly set up?

Has the feature been requested before?

First time.

@cleanunicorn cleanunicorn added enhancement New feature or request help wanted Extra attention is needed labels Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant