Skip to content

Commit 4a28995

Browse files
authored
Merge pull request #2858 from ehuss/add-semver-checks
Add cargo-semver-checks
2 parents 4c397a9 + 5b79ed4 commit 4a28995

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,20 @@ jobs:
110110
env:
111111
RUSTDOCFLAGS: -D warnings
112112

113+
check-version-bump:
114+
name: Check version bump
115+
runs-on: ubuntu-latest
116+
steps:
117+
- uses: actions/checkout@v4
118+
- run: rustup update stable && rustup default stable
119+
- name: Install cargo-semver-checks
120+
run: |
121+
mkdir installed-bins
122+
curl -Lf https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.43.0/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz \
123+
| tar -xz --directory=./installed-bins
124+
echo `pwd`/installed-bins >> $GITHUB_PATH
125+
- run: cargo semver-checks --workspace
126+
113127
# The success job is here to consolidate the total success/failure state of
114128
# all other jobs. This job is then included in the GitHub branch protection
115129
# rule which prevents merges unless all other jobs are passing. This makes
@@ -125,6 +139,7 @@ jobs:
125139
- gui
126140
- clippy
127141
- docs
142+
- check-version-bump
128143
runs-on: ubuntu-latest
129144
steps:
130145
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

0 commit comments

Comments
 (0)