substrate-api-client icon indicating copy to clipboard operation
substrate-api-client copied to clipboard

Add automatic semver check to CI

Open haerdib opened this issue 2 years ago • 3 comments

According to the comment of @Niederb here: https://github.com/scs/substrate-api-client/pull/515#pullrequestreview-1372403763:

I recently saw this cargo-semver-checks maybe this would make it easier to identify breaking changes. I haven't tried it though.

I quickly looked into it, but it seems cargo semver, while it does support semver check against github revisions with cli, it does not support this in Github Actions. It seems to only check against crates.io. To solve this issue we can either

  • use another semver checker
  • publish on crates.io (see #528)

haerdib avatar Apr 12 '23 14:04 haerdib

I agree that publishing on crates.io is probably the easiest approach but did you see the section "Does the crate I'm checking have to be published on crates.io?" in the readme?

Niederb avatar Apr 13 '23 07:04 Niederb

Yes, I saw that. But as far as I understood, that's for the cli version. For the GitHub Action one, I didn't find that option. Ofc, one could build the cli version into GHA, but I'm not sure if that's worth it.

haerdib avatar Apr 13 '23 07:04 haerdib

Yes, I saw that. But as far as I understood, that's for the cli version. For the GitHub Action one, I didn't find that option. Ofc, one could build the cli version into GHA, but I'm not sure if that's worth it.

Ok, I just wanted to mention it. You already gave it more thought than I did 👍

Niederb avatar Apr 13 '23 07:04 Niederb