Skip to content

Commit db6b70a

Browse files
committed
CI: Add cargo-semver-checks job.
1 parent e88750b commit db6b70a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

+22
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,28 @@ jobs:
6262

6363
- run: cargo audit --deny warnings
6464

65+
cargo-semver-checks:
66+
runs-on: ubuntu-22.04
67+
68+
steps:
69+
- run: rustup --version
70+
71+
- uses: briansmith/actions-cache@v3
72+
with:
73+
path: |
74+
~/.cargo/bin/cargo-semver-checks
75+
~/.cargo/.crates.toml
76+
~/.cargo/.crates2.json
77+
key: ${{ runner.os }}-v2-cargo-audit-locked-0.18.3
78+
79+
- run: cargo install cargo-semver-checks --locked --vers "0.31.0"
80+
81+
- uses: briansmith/actions-checkout@v4
82+
with:
83+
persist-credentials: false
84+
85+
- run: cargo semver-checks
86+
6587
deny:
6688
# Don't run duplicate `push` jobs for the repo owner's PRs.
6789
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

0 commit comments

Comments
 (0)