Skip to content

Commit

Permalink
Add CI job to run cargo-semver-checks
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Jan 8, 2024
1 parent b348ed3 commit 5322f0e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

complete:
if: always()
needs: [fmt, check-git-rev-deps, build-and-test, docs, readme]
needs: [fmt, check-git-rev-deps, api-compat, build-and-test, docs, readme]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
Expand Down Expand Up @@ -60,6 +60,20 @@ jobs:
- name: Check if rust-analyzer encounters any errors parsing project
run: rustup run nightly rust-analyzer analysis-stats . 2>&1 | (! grep '^\[ERROR')

api-compat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup update
# TODO: Replace with stellar/binaries once
# https://github.com/stellar/binaries/pull/17 is merged.
- run: cargo install --locked cargo-semver-checks --version 0.27.0
# - 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 5322f0e

Please sign in to comment.