Colorize GTest Output in GitHub Actions #1218

Closed
NickGerleman wants to merge 1 commits from NickGerleman-colorize-gtest into main
NickGerleman commented 2023-01-16 11:41:40 -08:00 (Migrated from github.com)

GitHub Actions supports terminal colors, but most programs won't output color to a non-interactive terminal. We can control this via env variable, so that GTest output in GitHub actions is colorized.

Before:
image

After:
image

GitHub Actions supports terminal colors, but most programs won't output color to a non-interactive terminal. We can control this via env variable, so that GTest output in GitHub actions is colorized. Before: <img width="755" alt="image" src="https://user-images.githubusercontent.com/835219/212755266-0d31636e-3ea3-4efb-a767-f71e969166df.png"> After: <img width="765" alt="image" src="https://user-images.githubusercontent.com/835219/212755136-5cdc9a0a-cab9-4f4a-896d-b48eb8cfb128.png">
facebook-github-bot commented 2023-01-16 11:46:57 -08:00 (Migrated from github.com)

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff [on Phabricator](https://www.internalfb.com/diff/D42537630).
facebook-github-bot commented 2023-01-16 13:08:46 -08:00 (Migrated from github.com)

@NickGerleman merged this pull request in facebook/yoga@cac197f5a6.

@NickGerleman merged this pull request in facebook/yoga@cac197f5a6332990dedf1401b45fdc7d62f88ce4.

Pull request closed

Sign in to join this conversation.
No description provided.