From df267494f2610c81d9e8e54d26daeacb92c64bf8 Mon Sep 17 00:00:00 2001 From: ilslv Date: Tue, 14 Dec 2021 09:26:57 +0300 Subject: [PATCH] Add `minimal_versions` CI job --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ Cargo.toml | 4 ++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3df77f6..d61f487 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,3 +140,31 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} args: --workspace --all-features --all-targets -- -D warnings + minimal_versions: + name: Minimal versions + needs: smoke + strategy: + matrix: + os: [ "ubuntu-latest", "windows-latest", "macos-latest" ] + rust: [ "1.54.0" ] # MSRV + continue-on-error: ${{ matrix.rust != 'stable' }} + runs-on: ${{ matrix.os }} + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + - name: Downgrade crates to minimal supported versions + run: cargo +nightly update -Z minimal-versions + - uses: Swatinem/rust-cache@v1 + - name: Default features + run: cargo test --workspace + - name: No-default features + run: cargo test --workspace --no-default-features diff --git a/Cargo.toml b/Cargo.toml index 47a5080..3adb916 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,10 +30,10 @@ pre-release-replacements = [ ] [dependencies] -serde = { version = "1.0", features = ["derive"] } +serde = { version = "1.0.113", features = ["derive"] } serde_json = "1.0" once_cell = "1.2.0" -log = "0.4" +log = "0.4.4" [dev-dependencies] assert_fs = "1.0"