Skip to content

Commit

Permalink
Add min versions check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Nov 22, 2023
1 parent c817731 commit c51da97
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,25 @@ jobs:
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2

min-versions:
name: Minimal Dependency Versions
runs-on: ubuntu-latest
needs: [lints, docs]
steps:
- name: Checkout sources
uses: actions/checkout@v3

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

- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: Install cargo-minimal-versions
uses: taiki-e/install-action@cargo-minimal-versions

- name: Check with minimal versions
run: cargo minimal-versions check --workspace --ignore-private

lints:
name: Lints
runs-on: ubuntu-latest
Expand Down Expand Up @@ -148,7 +167,7 @@ jobs:
runs-on: ubuntu-latest
environment: production
if: github.event_name == 'release'
needs: [build, test, msrv, lints, docs, leaks, semver]
needs: [build, test, msrv, lints, docs, leaks, semver, min-versions]
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand Down

0 comments on commit c51da97

Please sign in to comment.