Skip to content

Commit

Permalink
test: add semver check ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromfedricci committed Sep 4, 2024
1 parent 807ec80 commit aed842d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ jobs:
- name: Check MSRV
run: cargo check --all-features

semver:
name: Check semver
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust stable
run: rustup toolchain install stable
- name: Check semver violations
uses: obi1kenobi/cargo-semver-checks-action@v2

docsrs:
name: Build doc
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ toolchain = "1.70.0"
command = "cargo"
args = ["check", "--all-features"]

# Check semver viloations.
[tasks.semver]
command = "cargo"
args = ["semver-checks", "${@}"]

# Run all documentation snippets.
[tasks.doc]
command = "cargo"
Expand Down

0 comments on commit aed842d

Please sign in to comment.