From f918b1b185e9fe64851f68eb3f7f38e124171f25 Mon Sep 17 00:00:00 2001 From: Hubert Bugaj Date: Thu, 26 Mar 2026 13:24:27 +0100 Subject: [PATCH] chore: `mise insta` task for openrpc specs --- docs/docs/developers/guides/release_checklist.md | 6 +----- mise.toml | 8 ++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/docs/developers/guides/release_checklist.md b/docs/docs/developers/guides/release_checklist.md index 7688e65cd52f..76869c1faf2f 100644 --- a/docs/docs/developers/guides/release_checklist.md +++ b/docs/docs/developers/guides/release_checklist.md @@ -22,11 +22,7 @@ Make a pull request with the following changes: [crates.io](https://crates.io/). - Make sure to run `cargo publish --dry-run` and include the `Cargo.lock` crate version change in the release. -- Make sure to update RPC specs by running - ``` - cargo test --lib -- rpc::tests::openrpc - cargo insta review - ``` +- Make sure to update RPC specs by running `mise insta` - The Pull Request must have the `Release` label. ## Release on GitHub diff --git a/mise.toml b/mise.toml index 52a1c201d710..c922f966e953 100644 --- a/mise.toml +++ b/mise.toml @@ -238,6 +238,14 @@ fi tail -n +2 .config/forest.dic | diff - "$TMPFILE" ''' +[tasks.insta] +description = "Update insta snapshots." +run = ''' +cargo test --lib -- rpc::tests::openrpc +cargo insta accept +''' +tools.cargo-insta = "1.46" + [tools] cargo-binstall = "1.17" go = "1.26"