Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,22 @@ jobs:
- clear_environment:
cache_key: v4.2.0-rust-1.88.0-cargo-audit-cache

check-cargo-semver-checks:
executor: rust-docker
resource_class: << pipeline.parameters.twoxlarge >>
steps:
- checkout:
method: full
- setup_environment:
cache_key: v4.2.0-rust-1.88.0-cargo-semver-checks-cache
- run:
name: Check for semver violations
no_output_timeout: 15m
command: |
bash ./.circleci/semver-checks.sh
- clear_environment:
cache_key: v4.2.0-rust-1.88.0-cargo-semver-checks-cache

check-clippy:
executor: rust-docker
resource_class: << pipeline.parameters.medium >>
Expand Down Expand Up @@ -850,6 +866,14 @@ workflows:
- testnet
- mainnet
- staging
- check-cargo-semver-checks:
filters:
branches:
only:
- canary
- testnet
- mainnet
- staging

snarkos-workflow:
jobs:
Expand Down
13 changes: 13 additions & 0 deletions .circleci/semver-checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#! /bin/bash

set -x

BASELINE_REV=5233959ad4 # UPDATE ME ON NECESSARY BREAKING CHANGES

# Ensure that the command is installed.
cargo install cargo-semver-checks@0.43.0 --locked

# Ensure we can find the baseline revision
git fetch --unshallow || true

cargo semver-checks --workspace --default-features --baseline-rev $BASELINE_REV