Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Cargo.lock for testing against MSRV instead of pinning #102

Merged
merged 1 commit into from
Sep 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- 1.42.0 # MSRV (minimum supported Rust version)
- stable
- beta
include:
- rust: 1.42.0
msrv: true
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -52,6 +55,13 @@ jobs:
profile: minimal
override: true

# See https://github.com/matklad/once_cell/issues/201
# To test locally, enable the lock file and then run:
# $ docker run --rm --user "$(id -u)":"$(id -g)" -v "$PWD":/usr/src/myapp -w /usr/src/myapp rust:1.42.0 cargo test
- name: Use Cargo.lock for MSRV
if: ${{ matrix.msrv }}
run: cp Cargo.lock.msrv Cargo.lock

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
Expand Down