From 88fff4c028ccfeced4111cf10fa8ee0ce42c8cd1 Mon Sep 17 00:00:00 2001 From: teoxoy <28601907+teoxoy@users.noreply.github.com> Date: Sat, 16 Apr 2022 15:06:00 +0200 Subject: [PATCH] add minimal-versions check to CI --- .github/workflows/pipeline.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index a54d9a891d..a4b4bc1861 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: test-msrv: - name: Test MSRV + name: Test MSRV and dependencies minimal-versions runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -13,11 +13,12 @@ jobs: profile: minimal toolchain: "1.56.0" override: true - - uses: actions-rs/cargo@v1 - name: Test all features - with: - command: test - args: --all-features --workspace + - uses: taiki-e/install-action@cargo-hack + - uses: taiki-e/install-action@cargo-minimal-versions + # nightly is only used by cargo-minimal-versions to regenerate the lock file + - run: rustup toolchain add nightly --no-self-update + - name: Test all features + run: cargo minimal-versions test --all-features --workspace - name: Check snapshots run: git diff --exit-code -- tests/out test: