From 8e4d42a4da69f7e17d9a31c7a4f88ab7353ac865 Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Mon, 5 Jun 2023 06:45:32 +0200 Subject: [PATCH 1/2] Fix dead code error when running dateutils test on Windows --- tests/dateutils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/dateutils.rs b/tests/dateutils.rs index d671ecca87..f49659d2e6 100644 --- a/tests/dateutils.rs +++ b/tests/dateutils.rs @@ -64,6 +64,7 @@ const DATE_PATH: &'static str = "/usr/bin/date"; const DATE_PATH: &'static str = "/opt/freeware/bin/date"; #[cfg(test)] +#[cfg(unix)] /// test helper to sanity check the date command behaves as expected /// asserts the command succeeded fn assert_run_date_version() { From a893dfee69f9aa6cbf77e1c708db68577d08c846 Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Mon, 5 Jun 2023 06:46:37 +0200 Subject: [PATCH 2/2] [CI] Run all test on Windows and MacOS --- .github/workflows/test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ee616c7731..c97c0b1608 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,8 +28,7 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - run: cargo test --lib --all-features --color=always -- --color=always - - run: cargo test --doc --all-features --color=always -- --color=always + - run: cargo test --all-features --color=always -- --color=always # later this may be able to be included with the below # kept separate for now as the following don't compile on 1.56.1