Skip to content

Commit 9ca4138

Browse files
committed
Add SemVer compatibility checks to CI
Even small changes to item visibility during fixes might introduce SemVer violations (see https://doc.rust-lang.org/cargo/reference/semver.html#change-categories for a list of changs that would be considered major/minor). To make sure we don't accidentally introduce such changes, we here add a new semver-checks CI job that utilizes cargo-semver-checks (https://github.com/obi1kenobi/cargo-semver-checks), and have it run on any push or pull requests.
1 parent 3cd1e98 commit 9ca4138

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/semver.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: SemVer checks
2+
on: [push, pull_request]
3+
4+
jobs:
5+
semver-checks:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout source code
9+
uses: actions/checkout@v4
10+
- name: Install Rust stable toolchain
11+
run: |
12+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
13+
rustup override set stable
14+
- name: Check SemVer
15+
uses: obi1kenobi/cargo-semver-checks-action@v2

0 commit comments

Comments
 (0)