Skip to content

Commit 8952a04

Browse files
committed
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 straightforward 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 <[email protected]>
1 parent 9e44d13 commit 8952a04

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/msrv.yml

+12
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
minimal: true
2626
override: true
2727

28+
- name: Install Cargo.lock.msrv
29+
run: cp Cargo.lock.msrv Cargo.lock
30+
2831
- name: Run cargo check
2932
if: matrix.rust != 'nightly'
3033
uses: actions-rs/cargo@v1
@@ -60,6 +63,9 @@ jobs:
6063
minimal: true
6164
override: true
6265

66+
- name: Install Cargo.lock.msrv
67+
run: cp Cargo.lock.msrv Cargo.lock
68+
6369
- name: Run cargo test
6470
if: matrix.rust != 'nightly' && matrix.rust != '1.59.0'
6571
uses: actions-rs/cargo@v1
@@ -125,6 +131,9 @@ jobs:
125131
override: true
126132
components: clippy
127133

134+
- name: Install Cargo.lock.msrv
135+
run: cp Cargo.lock.msrv Cargo.lock
136+
128137
- name: Run cargo clippy
129138
uses: actions-rs/cargo@v1
130139
with:
@@ -152,6 +161,9 @@ jobs:
152161
minimal: true
153162
override: true
154163

164+
- name: Install Cargo.lock.msrv
165+
run: cp Cargo.lock.msrv Cargo.lock
166+
155167
- name: Run cargo check
156168
uses: actions-rs/cargo@v1
157169
with:

0 commit comments

Comments
 (0)