From 11579efce7678804d76752d2ef441f644856102f Mon Sep 17 00:00:00 2001 From: CosmicHorror Date: Sun, 19 Nov 2023 16:42:41 -0700 Subject: [PATCH] Run `cargo test` in CI (#42) * Run `cargo test` in CI * `#[ignore]` a couple lingering doctests --- .github/workflows/ci.yml | 8 ++++++++ src/lib.rs | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbdb447..b930d2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,14 @@ jobs: - name: Check formatting run: cargo fmt --all -- --check + test: + needs: fmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Check formatting + run: cargo test + docs: needs: fmt runs-on: ubuntu-latest diff --git a/src/lib.rs b/src/lib.rs index 0057063..5caeac8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -32,7 +32,7 @@ //! # Examples //! //! ### Locate the installed Steam directory -//! ```rust +//! ```rust,ignore //! extern crate steamlocate; //! use steamlocate::SteamDir; //! @@ -161,7 +161,7 @@ pub mod test_helpers; /// If you'd like to dispose of the cache or get uncached results, just instantiate a new `SteamDir`. /// /// # Example -/// ```rust +/// ```rust,ignore /// # use steamlocate::SteamDir; /// let steamdir = SteamDir::locate(); /// println!("{:#?}", steamdir.unwrap());