-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat(ci): support colorized output in GitHub Actions #149
Comments
Hi @tdabasinskas. Thanks for raising! I didn't know that 👀 I came up with a idea to set |
Hi, Thanks for a quick reply! The way I understand
So, my suggestion would be the following:
This would result in no breaking changes as well as follow common patterns - some languages (e.g. Python) and frameworks already support |
Thanks for the information! I learned much through this issue😳 I thought this feature should be discussed in the library and found fatih/color#155 By default, faith/color does not colorize outputs if stdout is not a TTY. Unfortunately it is no merged at this point but I also found fatih's stance for env But chartsnap is inspired by the existing UI snapshot testing tools like Jest. As listed in https://force-color.org/, So I understand it is worth implementing this feature👍 |
Released v0.4.3 🚀 You can also check this job. |
Already tested it - works great. Thanks! |
Hi,
First, thanks for a great tool!
Would it be possible to add support for colorized output in GitHub Actions? As I understand, you are using fatih/color module for colorized output. As per the documentation, the module does support colorizing output in GitHub Actions, but requires explicitly setting
color.NoColor = false
.Could we introduce some flag or environment variable, e.g.
FORCE_COLOR
, which, when set would setcolor.NoColor
tofalse
?The text was updated successfully, but these errors were encountered: