Skip to content

Commit 601bcaa

Browse files
committed
Add cargo-semver-checks to CI
- Add semantic versioning check for linting purposes
1 parent 34478c6 commit 601bcaa

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,26 @@ jobs:
148148
- run: cargo deny check
149149
- run: cargo deny --all-features check
150150
- run: cargo deny --no-default-features --features alloc check
151-
- run: cargo deny --no-default-features --features std check
151+
- run: cargo deny --no-default-features --features std check
152+
semver:
153+
name: Semantic Versioning Check
154+
strategy:
155+
matrix:
156+
os:
157+
- ubuntu-latest
158+
rust:
159+
- stable
160+
runs-on: ${{ matrix.os }}
161+
steps:
162+
- name: Checkout sources
163+
uses: actions/checkout@v4
164+
with:
165+
persist-credentials: false
166+
- name: Install toolchain
167+
uses: dtolnay/rust-toolchain@master
168+
with:
169+
toolchain: ${{ matrix.rust }}
170+
- name: Rust Version
171+
run: rustc --version
172+
- name: Check semver
173+
uses: obi1kenobi/cargo-semver-checks-action@v2

0 commit comments

Comments
 (0)