From 3ec0739e6324d41be20c6aad77b76d4faabe85fa Mon Sep 17 00:00:00 2001 From: Peter Burns Date: Fri, 1 Sep 2023 11:29:06 -0500 Subject: [PATCH] Improve ci output (#850) * Use wireit v0.11.0 in wireit. * Add the `quiet-ci` logger option * Address review comments. --- CHANGELOG.md | 6 + README.md | 16 +-- package.json | 13 ++ src/cli-options.ts | 5 +- src/logging/quiet-logger.ts | 32 +++-- src/logging/quiet/run-tracker.ts | 24 ++-- src/logging/quiet/writeover-line.ts | 181 +++++++++++++++++----------- src/test/quiet-logger.test.ts | 114 ++++++++++++++++++ 8 files changed, 293 insertions(+), 98 deletions(-) create mode 100644 src/test/quiet-logger.test.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 12248a138..e042485c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +## Added + +- Added a `quiet-ci` logger with output optimized for non-interactive environemnts, like a continuous integration builder (e.g. GitHub Actions). Writes less often, doesn't show a spinner, doesn't use \r to try to writeover previous output, and only prints a new status line if there's been a change. + ## [0.11.0] - 2023-08-30 ## Added diff --git a/README.md b/README.md index 805645a7f..cceaad153 100644 --- a/README.md +++ b/README.md @@ -847,14 +847,14 @@ The following syntaxes can be used in the `wireit.