Skip to content

Commit

Permalink
Run semver CI on demand (open-telemetry#1813)
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas authored and lalitb committed May 23, 2024
1 parent fd93c32 commit e75a1b7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,6 @@ jobs:
env:
CARGO_INCREMENTAL: '0'
RUSTDOCFLAGS: -Dwarnings
semver: # This job uses the latest published crate as baseline for comparison.
runs-on: ubuntu-latest
name: semver
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: cargo-semver-checks
uses: obi1kenobi/cargo-semver-checks-action@v2.3
coverage:
continue-on-error: true
runs-on: ubuntu-latest
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/semver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Semver compliance
env:
CI: true
on:
pull_request:
types: [ labeled, synchronize, opened, reopened ]

jobs:
semver-compliance: # This job uses the latest published crate as baseline for comparison.
runs-on: ubuntu-latest
timeout-minutes: 10
if: ${{ github.event.label.name == 'semver-check' || contains(github.event.pull_request.labels.*.name, 'semver-check') }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: cargo-semver-checks
uses: obi1kenobi/cargo-semver-checks-action@v2.3

0 comments on commit e75a1b7

Please sign in to comment.