Skip to content

Commit 12fb677

Browse files
committed
ci: integrate cargo-semver-checks
1 parent 2847912 commit 12fb677

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/main.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,14 @@ jobs:
9191
steps:
9292
- uses: actions/checkout@v3
9393
with:
94-
fetch-depth: 0 # make `git diff` work
94+
fetch-depth: 0
9595
- run: rustup update stable && rustup default stable
96+
- name: Install cargo-semver-checks
97+
run: |
98+
mkdir installed-bins
99+
curl -Lf https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.22.1/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz \
100+
| tar -xz --directory=./installed-bins
101+
echo `pwd`/installed-bins >> $GITHUB_PATH
96102
- run: ci/validate-version-bump.sh
97103

98104
test:

ci/validate-version-bump.sh

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ echo "Base branch is $base_sha"
2020
echo "Current head is $head_sha"
2121

2222
cargo bump-check --baseline-rev "$base_sha"
23+
cargo semver-checks --workspace --baseline-rev "$base_sha"

0 commit comments

Comments
 (0)