Skip to content

Commit

Permalink
Add CI job to check MSRV is valid
Browse files Browse the repository at this point in the history
This commit adds a new CI job that checks the minimum supported Rust
version (MSRV) is still valid --- that is, that Spreet still compiles
using that version. The job uses the cargo-hack tool to check the MSRV
against the Rust version specified in the Cargo.toml file.

The job is defined as a GitHub Action and runs on every push.
  • Loading branch information
flother committed Aug 15, 2024
1 parent e12a1ee commit e3a3fee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ jobs:
components: rustfmt
- name: Run cargo fmt
run: cargo fmt --all --check
msrv:
name: Check minimum supported Rust version is correct
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack
- run: cargo hack check --rust-version
test:
name: cargo test
runs-on: ubuntu-latest
Expand Down

0 comments on commit e3a3fee

Please sign in to comment.