Skip to content

Commit

Permalink
update github action sciprt
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Apr 6, 2021
1 parent 402971f commit 43eff23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ jobs:
# id: go

- name: Display Env
run: env
run: env | grep -i term

- name: Run unit tests
env:
COLOR_DEBUG_MODE: on
# run: go test -v -cover ./...
# must add " for profile.cov on windows OS
run: go test -v -coverprofile="profile.cov" ./...
Expand Down
2 changes: 2 additions & 0 deletions detect_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func DetectColorLevel() terminfo.ColorLevel {
return level
}

// detect terminal color support level
//
// refer https://github.com/Delta456/box-cli-maker
func detectTermColorLevel() (level terminfo.ColorLevel, needVTP bool) {
var err error
Expand Down

0 comments on commit 43eff23

Please sign in to comment.