Skip to content

Commit

Permalink
Added CI checks to remove readme from tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
iesahin committed Oct 28, 2023
1 parent 97b2fb5 commit d365c44
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions workflow_tests/tests/z_test_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@ const DOC_TEST_DIR: &str = "docs/";
fn link_to_docs() -> Result<()> {
test_logging(log::LevelFilter::Trace);
let book_base = Path::new("../book/src/");
let book_dirs_and_filters = vec![
("intro", r".*"),
("ref", r".*"),
("start", r".*"),
("how-to", r".*"),
];
let in_ci = option_env!("CI").is_some();
let book_dirs_and_filters = if in_ci {
vec![("ref", r".*"), ("start", r".*"), ("how-to", r".*")]
} else {
vec![
("intro", r".*"),
("ref", r".*"),
("start", r".*"),
("how-to", r".*"),
]
};
let template_dir_root = Path::new("templates");

// This is a directory that we create to keep testing artifacts outside the code
Expand Down

0 comments on commit d365c44

Please sign in to comment.