Add semver check (#156)

* Add semver check

Fix format

Speeling

Speeling

* Further contributing note

* Speeling

* Fix hostPlatform -> stdenv issue

* Bump dependencies

---------

Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>
This commit is contained in:
Ana Hobden 2023-03-29 10:24:08 -07:00 committed by GitHub
parent ce4cf08b7b
commit f95ed913f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View file

@ -359,6 +359,9 @@ You can also remove your `$HOME/nix-installer-wsl-tests-temp` folder whenever yo
# Releases
This package uses [Semantic Versioning](https://semver.org/). When determining the version number for a new release refer to Semantic Versioning for guidance. You can use the `check-semver` command alias from within the development environment to validate your changes don't break semver.
To cut a release:
* Ensure the `flake.lock`, `Cargo.lock`, and Rust dependencies are up-to-date with the following:

View file

@ -139,6 +139,7 @@
check.check-spelling
check.check-nixpkgs-fmt
check.check-editorconfig
check.check-semver
]
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [ libiconv ]);
};

View file

@ -41,4 +41,13 @@ in
eclint .
'';
});
# Semver
check-semver = (writeShellApplication {
name = "check-semver";
runtimeInputs = with pkgs; [ cargo-semver-checks ];
text = ''
cargo-semver-checks semver-checks check-release
'';
});
}