Skip to content

Commit

Permalink
Add CI job to check MSRV.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Sep 27, 2023
1 parent b919a52 commit 62ec248
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
MSRV: "1.56"

jobs:
test:
Expand All @@ -29,5 +30,27 @@ jobs:
toolchain: ${{ matrix.toolchain }}

- name: Run Tests
run: ./scripts/test.sh
run: "cargo update && ./scripts/test.sh"
shell: bash

msrv:
name: Check MSRV
runs-on: ubuntu-latest

steps:
- name: Checkout Sources
uses: actions/checkout@v4

- name: Install Rust Nightly
uses: dtolnay/rust-toolchain@nightly

- name: Downgrade Dependencies to Minimal Versions
run: cargo update -Z minimal-versions

- name: "Install MSRV (${{ env.MSRV }})"
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}

- name: Run Tests
run: ./scripts/test.sh
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ percent-encoding = { version = "2.0", optional = true }
aes-gcm = { version = "0.10.0", optional = true }
hmac = { version = "0.12.0", optional = true }
sha2 = { version = "0.10.0", optional = true }
base64 = { version = "0.21", optional = true }
base64 = { version = "0.21.4", optional = true }
rand = { version = "0.8", optional = true }
hkdf = { version = "0.12.0", optional = true }
subtle = { version = "2.3", optional = true }
Expand Down

0 comments on commit 62ec248

Please sign in to comment.