Skip to content

Commit f33ac97

Browse files
committed
ci: Check MSRV in CI job
1 parent 4cf6083 commit f33ac97

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,20 @@ jobs:
3535
- name: Run rustfmt --check
3636
run: cargo fmt -- --check
3737

38+
msrv:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- name: Install cargo-hack
43+
uses: taiki-e/install-action@cargo-hack
44+
- uses: Swatinem/rust-cache@v2
45+
- name: Use predefined lockfile
46+
run: mv -v Cargo.lock.MSRV Cargo.lock
47+
- name: Build (lib only)
48+
run: cargo hack check --rust-version --locked
49+
3850
test:
39-
needs: [clippy, fmt]
51+
needs: [clippy, fmt, msrv]
4052
runs-on: ${{ matrix.os }}
4153
strategy:
4254
matrix:

0 commit comments

Comments
 (0)