Skip to content
Open
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
5 changes: 5 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions crates/testutil/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,24 @@ pluto-core.workspace = true
pluto-crypto.workspace = true
pluto-eth2api.workspace = true
pluto-eth2util.workspace = true
pluto-featureset.workspace = true
rand.workspace = true
regex.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
tokio.workspace = true
tokio-util.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
tree_hash.workspace = true
url.workspace = true
wiremock.workspace = true

[dev-dependencies]
assert-json-diff.workspace = true
test-case.workspace = true

[lints]
workspace = true
22 changes: 22 additions & 0 deletions crates/testutil/src/bin/verifypr.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//! Command `verifypr` verifies a GitHub pull request against the contribution
//! template.
//!
//! The PR is read as JSON from the `GITHUB_PR` env variable.

use std::{io, process::ExitCode};

use pluto_testutil::verifypr::verify;

fn main() -> ExitCode {
tracing_subscriber::fmt().with_writer(io::stderr).init();

if let Err(err) = verify() {
tracing::error!(%err, "❌ Verification failed");

return ExitCode::FAILURE;
}

tracing::info!("✅ Verification success");

ExitCode::SUCCESS
}
3 changes: 3 additions & 0 deletions crates/testutil/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ pub mod beaconmock;
/// Validator mock — drives validator-side duties against a [`BeaconMock`].
pub mod validatormock;

/// Pull-request template verification.
pub mod verifypr;

pub use beaconmock::{BeaconMock, MockState, Validator, ValidatorSet};
pub use random::{
random_deneb_versioned_attestation, random_eth2_signature, random_eth2_signature_bytes,
Expand Down
Loading
Loading