From c326bd0a3bb4b73c2a5312caa80d4cbd415eccba Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Thu, 18 Dec 2025 14:50:09 -0700 Subject: [PATCH] fixup semver check in CI --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b12e61..66b1ea8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -127,13 +127,19 @@ jobs: run: cargo clippy --all --all-features -- -D warnings # Semver compatibility checks - # Note: This will fail until crates are published to crates.io + # Use git baseline since crates aren't published to crates.io yet + # See: https://github.com/obi1kenobi/cargo-semver-checks?tab=readme-ov-file#does-the-crate-im-checking-have-to-be-published-on-cratesio semver-checks: runs-on: ubuntu-latest - continue-on-error: true + # Only run on PRs (compare PR head against base branch) + if: github.event_name == 'pull_request' steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Check semver uses: obi1kenobi/cargo-semver-checks-action@v2 + with: + baseline-rev: ${{ github.event.pull_request.base.sha }}