From e959be8c8370384010a9c2ff26aebb9e3faacc3d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 6 Nov 2023 17:55:35 +0000 Subject: [PATCH] Use Cargo.lock.msrv in CI tests This will prevent our CI breaking due to updates to our dependencies. Because of the way the msrv.yml file is constructed, it was not straightfoward to use the committed lockfile only for the MSRV tests. It would be better to use a different lockfile, with latest versions of our dependencies, for non-MSRV tests. Signed-off-by: Ian Jackson --- .github/workflows/msrv.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index eb016d22..7c78b8e4 100644 --- a/.github/workflows/msrv.yml +++ b/.github/workflows/msrv.yml @@ -25,6 +25,9 @@ jobs: minimal: true override: true + - name: Install Cargo.lock.msrv + run: cp Cargo.lock.msrv Cargo.lock + - name: Run cargo check if: matrix.rust != 'nightly' uses: actions-rs/cargo@v1 @@ -60,6 +63,9 @@ jobs: minimal: true override: true + - name: Install Cargo.lock.msrv + run: cp Cargo.lock.msrv Cargo.lock + - name: Run cargo test if: matrix.rust != 'nightly' && matrix.rust != '1.59.0' uses: actions-rs/cargo@v1 @@ -125,6 +131,9 @@ jobs: override: true components: clippy + - name: Install Cargo.lock.msrv + run: cp Cargo.lock.msrv Cargo.lock + - name: Run cargo clippy uses: actions-rs/cargo@v1 with: @@ -152,6 +161,9 @@ jobs: minimal: true override: true + - name: Install Cargo.lock.msrv + run: cp Cargo.lock.msrv Cargo.lock + - name: Run cargo check uses: actions-rs/cargo@v1 with: