Skip to content

Commit 920fc2f

Browse files
authored
ci: check semver compat (rustls#226)
Use `cargo-semver-checks-action` in CI to try and catch semver breaking changes being made without the correct `Cargo.toml` version update. Note: not perfect - this check passing is necessary but not sufficient for maintaining semver.
1 parent 5ab99d9 commit 920fc2f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@ jobs:
8888
- name: Check MSRV
8989
run: cargo check --lib --all-features
9090

91+
semver:
92+
name: Check semver compatibility
93+
runs-on: ubuntu-latest
94+
steps:
95+
- name: Checkout sources
96+
uses: actions/checkout@v4
97+
with:
98+
persist-credentials: false
99+
100+
- name: Check semver
101+
uses: obi1kenobi/cargo-semver-checks-action@v2
102+
91103
docs:
92104
name: Check for documentation errors
93105
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)