Skip to content

Commit

Permalink
ci: integrate cargo-semver-checks
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Jul 26, 2023
1 parent 512dcaf commit 809acf3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,14 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # make `git diff` work
fetch-depth: 0
- run: rustup update stable && rustup default stable
- name: Install cargo-semver-checks
run: |
mkdir installed-bins
curl -Lf https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.22.1/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz \
| tar -xz --directory=./installed-bins
echo `pwd`/installed-bins >> $GITHUB_PATH
- run: ci/validate-version-bump.sh

test:
Expand Down
1 change: 1 addition & 0 deletions ci/validate-version-bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ echo "Base branch is $base_sha"
echo "Current head is $head_sha"

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

0 comments on commit 809acf3

Please sign in to comment.