Skip to content

Commit dd1f9e2

Browse files
committed
Add action to catch semver violations
The main thing is to prevent breaking changes, regardless of the current version specified in Cargo.toml - so we specify `release-type: minor`.
1 parent 30a6d3d commit dd1f9e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,12 @@ jobs:
6565
- uses: dtolnay/rust-toolchain@clippy
6666
- run: cargo clippy --all-targets -- -D warnings
6767
- run: cargo clippy --all-targets --all-features -- -D warnings
68+
69+
semver-checks:
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v5
73+
- name: Check semver
74+
uses: obi1kenobi/cargo-semver-checks-action@v2
75+
with:
76+
release-type: minor

0 commit comments

Comments
 (0)