Skip to content

Commit

Permalink
Add CI job to run cargo-semver-checks (#1202)
Browse files Browse the repository at this point in the history
### What
Add CI job to run cargo-semver-checks

### Why
To monitor whether the changes being made to the soroban-sdk and its
exports are a match for the version being targeted.

Close #1195

---------

Co-authored-by: Graydon Hoare <[email protected]>
  • Loading branch information
leighmcculloch and graydon authored Jan 16, 2024
1 parent e6c2c90 commit 25750fb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

complete:
if: always()
needs: [fmt, check-git-rev-deps, build-and-test, docs, readme]
needs: [fmt, check-git-rev-deps, semver-checks, build-and-test, docs, readme]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
Expand Down Expand Up @@ -57,6 +57,17 @@ jobs:
- name: Check if rust-analyzer encounters any errors parsing project
run: rustup run nightly 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:
fail-fast: false
Expand Down

0 comments on commit 25750fb

Please sign in to comment.