Skip to content

Commit 9567063

Browse files
committed
Add semver checks to pipeline
1 parent c6ff196 commit 9567063

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,24 @@ jobs:
4848
- name: Run tests
4949
run: cargo test --verbose
5050

51+
# Check that there are no SemVer violations before releasing.
52+
# https://github.com/obi1kenobi/cargo-semver-checks
53+
- name: Check semver
54+
uses: obi1kenobi/cargo-semver-checks-action@v2
55+
with:
56+
feature-group: default-features
57+
features: pool
58+
59+
# Another check with the mutually exclusive tls-rustls feature enabled.
60+
- name: Check semver
61+
uses: obi1kenobi/cargo-semver-checks-action@v2
62+
with:
63+
feature-group: only-explicit-features
64+
features: tls-rustls,pool
65+
66+
5167
- name: Deploy to crates.io
5268
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5369
run: cargo publish
5470
env:
55-
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
71+
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 commit comments

Comments
 (0)