Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI job to run cargo-semver-checks #1323

Merged
merged 4 commits into from
Jan 16, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
# temporarily disabling publish-dry-run, it appears to be broken with recent
# changes to dependency specifications?
# needs: [fmt, cackle, cargo-deny, check-git-rev-deps, build-and-test, publish-dry-run]
needs: [fmt, cackle, cargo-deny, check-git-rev-deps, build-and-test]
needs: [fmt, cackle, cargo-deny, check-git-rev-deps, semver-checks, build-and-test]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
Expand Down Expand Up @@ -63,6 +63,17 @@ jobs:
- name: Check if rust-analyzer encounters any errors parsing project
run: rust-analyzer analysis-stats . 2>&1 | (! grep ERROR)

semver-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup update
- uses: stellar/binaries@v18
with:
name: cargo-semver-checks
version: 0.27.0
- run: cargo semver-checks

build-and-test:
strategy:
matrix:
Expand Down