Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run cargo-semver-checks in CI #822

Merged
merged 3 commits into from
Jun 12, 2024
Merged
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
29 changes: 29 additions & 0 deletions .github/workflows/cargo-semver-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
pull_request:
types: [opened, reopened, synchronize, labeled, unlabeled]
merge_group:

name: Check semver breakage

jobs:
cargo-semver-check:
runs-on: ubuntu-latest

# Skip if PR is labelled as breaking change
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'breaking change') }}

steps:
- uses: actions/checkout@v4
- name: Semver check crates without "unstable" feature
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
feature-group: default-features
- name: Semver check crates with "unstable" feature
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
exclude: defmt, defmt-json-schema
features: unstable
- name: Semver check firmware crates
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
manifest-path: firmware/
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

- [#xxx]: `CI`: Update mdbook to v0.4.40
- [#852]: `CI`: Update mdbook to v0.4.40
- [#847]: `decoder`: Fix log format width specifier not working as expected
- [#845]: `decoder`: fix println!() records being printed with formatting
- [#843]: `defmt`: Sort IDs of log msgs by severity to allow runtime filtering by severity
- [#822]: `CI`: Run `cargo semver-checks` on every PR

[#xxx]: https://github.com/knurling-rs/defmt/pull/xxx
[#852]: https://github.com/knurling-rs/defmt/pull/852
[#847]: https://github.com/knurling-rs/defmt/pull/847
[#845]: https://github.com/knurling-rs/defmt/pull/845
[#843]: https://github.com/knurling-rs/defmt/pull/843
[#822]: https://github.com/knurling-rs/defmt/pull/822

## [v0.3.8] - 2024-05-17

Expand Down
Loading