From ccf1b8ade5b631e05fad79d1f9c5d268706d118e Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sun, 26 Jun 2022 22:55:19 +0100 Subject: [PATCH] fix(deps): bump minimum supports-color version (#182) also set things up so that we don't get caught off-guard in the future by incompatible minimum versions. --- .github/workflows/ci.yml | 18 ++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 884cf3f7..70c48474 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,3 +45,21 @@ jobs: - name: Run tests run: cargo test --all --verbose --features fancy + minimal_versions: + name: Minimal versions check + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macOS-latest, windows-latest] + + steps: + - uses: actions/checkout@v1 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + - name: Run minimal version build + run: cargo build -Z minimal-versions --all-features + diff --git a/Cargo.toml b/Cargo.toml index 4e3affb4..708ba9d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ owo-colors = { version = "3.0.0", optional = true } atty = { version = "0.2.14", optional = true } textwrap = { version = "0.15.0", optional = true } supports-hyperlinks = { version = "1.1.0", optional = true } -supports-color = { version = "1.0.4", optional = true } +supports-color = { version = "1.1.1", optional = true } supports-unicode = { version = "1.0.0", optional = true } backtrace = { version = "0.3.61", optional = true } terminal_size = { version = "0.1.17", optional = true }