Skip to content

Commit

Permalink
💚 accomodate isCI for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed May 9, 2024
1 parent 4aa502b commit 57f39a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,5 @@ jobs:

- name: Run tests
run: go test
env:
CI: ""


2 changes: 1 addition & 1 deletion taskin.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ func NewRunner(task Task, cfg Config) Runner {
}

func (task *Task) Progress(current, total int) {
task.ShowProgress = TaskProgress{Current: current, Total: total}
if IsCI() {
return
}
task.ShowProgress = TaskProgress{Current: current, Total: total}
if !task.Bar.IsAnimating() {
task.Bar = progress.New(task.Config.ProgressOptions...)
}
Expand Down

0 comments on commit 57f39a3

Please sign in to comment.