From 5a201775f4d042c549f2181163b13071396950a1 Mon Sep 17 00:00:00 2001 From: Spencer Ferris <3319370+spencewenski@users.noreply.github.com> Date: Thu, 6 Jun 2024 11:56:56 -0700 Subject: [PATCH] Move semver checks to a separate workflow --- .github/workflows/ci.yml | 9 --------- .github/workflows/semver.yml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/semver.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f9eebf2..9f42e8e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,12 +101,3 @@ jobs: env: RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private_intra_doc_links" run: cargo doc --all-features - - check_semver: - name: Semver - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: Swatinem/rust-cache@v2 - - name: Check semver - uses: obi1kenobi/cargo-semver-checks-action@v2 diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml new file mode 100644 index 00000000..9aac661d --- /dev/null +++ b/.github/workflows/semver.yml @@ -0,0 +1,24 @@ +# A separate workflow to check semver compatibility. This is in a separate workflow +# to avoid semver check failures (which will always happen when we're intentionally working on a +# new set of breaking changes) from making it look like our CI checks are failing. + +name: Semver + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + check_semver: + name: Check Semver + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - name: Check semver + uses: obi1kenobi/cargo-semver-checks-action@v2 \ No newline at end of file