From 8f8eacc0785941276c37bf10003d9b02b7ce68f9 Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Thu, 12 Jan 2023 09:50:41 -0500 Subject: [PATCH] github: Workaround test dep on git remote helper Workaround a client documentation test dependency on radicle's radicle-remote-helper. The framework has yet to support using the projects version directly. A proper fix is non-trivial. Signed-off-by: Slack Coder --- .github/workflows/actions.yml | 13 ++++++++++++- radicle-cli/tests/commands.rs | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 21876118..3b3f046d 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -21,7 +21,18 @@ jobs: env: RUSTFLAGS: -D warnings - name: Run tests - run: cargo test --all --verbose --all-features + run: | + cargo test --all --verbose --all-features + + # Workaround for client document tests dependent on the remote + # helper. Tests which rely on these should be marked #[ignore] and + # whitelisted here. + # + # Marking them as 'ignored' will allow local testing to work as + # expected, yet allow these document tests to be covered during + # integration testing. + cargo install --locked --debug --path ./radicle-remote-helper + cargo test --all --verbose --all-features rad_patch -- --ignored docs: name: Docs diff --git a/radicle-cli/tests/commands.rs b/radicle-cli/tests/commands.rs index d2642645..63efd1b6 100644 --- a/radicle-cli/tests/commands.rs +++ b/radicle-cli/tests/commands.rs @@ -94,6 +94,7 @@ fn rad_delegate() { } #[test] +#[ignore] fn rad_patch() { let home = tempfile::tempdir().unwrap(); let working = tempfile::tempdir().unwrap();