fix: CI quick-checks - fmt, taplo, umbrella version
This commit is contained in:
@@ -25,9 +25,9 @@ fn main() {
|
||||
mod cli {
|
||||
include!("src/cli.rs");
|
||||
|
||||
use bizinikiwi_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed};
|
||||
use clap::{CommandFactory, ValueEnum};
|
||||
use clap_complete::{generate_to, Shell};
|
||||
use bizinikiwi_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed};
|
||||
use std::{env, fs, path::Path};
|
||||
|
||||
pub fn main() {
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
|
||||
use pezkuwi_sdk::*;
|
||||
|
||||
use pezsc_service::Properties;
|
||||
use pez_kitchensink_runtime::{
|
||||
genesis_config_presets::{Staker, ENDOWMENT, STASH},
|
||||
wasm_binary_unwrap, Block, MaxNominations, StakerStatus,
|
||||
@@ -29,6 +28,7 @@ use pezpallet_im_online::sr25519::AuthorityId as ImOnlineId;
|
||||
use pezpallet_revive::is_eth_derived;
|
||||
use pezsc_chain_spec::ChainSpecExtension;
|
||||
use pezsc_service::ChainType;
|
||||
use pezsc_service::Properties;
|
||||
use pezsc_telemetry::TelemetryEndpoints;
|
||||
use pezsp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
|
||||
use pezsp_consensus_babe::AuthorityId as BabeId;
|
||||
|
||||
@@ -39,7 +39,7 @@ serde = { workspace = true, default-features = true }
|
||||
serde_json = { workspace = true, default-features = true }
|
||||
|
||||
[dev-dependencies]
|
||||
# bizinikiwi-test-runtime = { workspace = true } # publish=false
|
||||
bizinikiwi-test-runtime = { workspace = true }
|
||||
cmd_lib = { workspace = true }
|
||||
pretty_assertions = { workspace = true }
|
||||
|
||||
@@ -47,7 +47,7 @@ pretty_assertions = { workspace = true }
|
||||
# `cargo build --feature=generate-readme` updates the `README.md` file.
|
||||
generate-readme = []
|
||||
runtime-benchmarks = [
|
||||
# "bizinikiwi-test-runtime/runtime-benchmarks",
|
||||
"bizinikiwi-test-runtime/runtime-benchmarks",
|
||||
"pezsc-chain-spec/runtime-benchmarks",
|
||||
]
|
||||
std = [
|
||||
|
||||
@@ -32,12 +32,18 @@ const DUMMY_PATH: &str = "fake-runtime-path";
|
||||
|
||||
const OUTPUT_FILE: &str = "/tmp/chain_spec_builder.test_output_file.json";
|
||||
|
||||
// Get the chain-spec-builder binary path from environment
|
||||
fn get_chain_spec_builder_bin() -> String {
|
||||
std::env::var("CARGO_BIN_EXE_chain-spec-builder")
|
||||
.expect("CARGO_BIN_EXE_chain-spec-builder must be set - run with `cargo test`")
|
||||
}
|
||||
|
||||
// Used for running commands visually pleasing in doc tests.
|
||||
macro_rules! bash(
|
||||
( chain-spec-builder $($a:tt)* ) => {{
|
||||
let bin_path = env!("CARGO_BIN_EXE_chain-spec-builder");
|
||||
let bin = get_chain_spec_builder_bin();
|
||||
spawn_with_output!(
|
||||
$bin_path $($a)*
|
||||
$bin $($a)*
|
||||
)
|
||||
.expect("a process running. qed")
|
||||
.wait_with_output()
|
||||
|
||||
Reference in New Issue
Block a user