forked from open-telemetry/opentelemetry-rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run semver CI on demand (open-telemetry#1813)
- Loading branch information
1 parent
4883d2d
commit 5c7c695
Showing
2 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
coverage: | ||
continue-on-error: true | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] |