Skip to content

Commit f6893a7

Browse files
authored
ci: add semver check job for pull requests (#819)
1 parent 7eb252a commit f6893a7

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,34 @@ jobs:
6060

6161
- name: Run clippy
6262
run: cargo clippy --all-targets --all-features -- -D warnings
63-
63+
64+
semver:
65+
name: SemVer Check
66+
runs-on: ubuntu-latest
67+
if: github.event_name == 'pull_request'
68+
steps:
69+
- uses: actions/checkout@v6
70+
with:
71+
fetch-depth: 0
72+
73+
- name: Install Rust
74+
uses: dtolnay/rust-toolchain@stable
75+
76+
- uses: Swatinem/rust-cache@v2
77+
78+
- name: Install cargo-semver-checks
79+
uses: taiki-e/install-action@v2
80+
with:
81+
tool: cargo-semver-checks
82+
83+
- name: Check rmcp (default features)
84+
run: |
85+
cargo semver-checks \
86+
--package rmcp \
87+
--baseline-rev ${{ github.event.pull_request.base.sha }} \
88+
--only-explicit-features \
89+
--features default
90+
6491
spelling:
6592
name: spell check with typos
6693
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)