Skip to content

Commit

Permalink
Run cargo test in CI (#42)
Browse files Browse the repository at this point in the history
* Run `cargo test` in CI

* `#[ignore]` a couple lingering doctests
  • Loading branch information
CosmicHorrorDev authored Nov 19, 2023
1 parent ad15e99 commit 11579ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
//! # Examples
//!
//! ### Locate the installed Steam directory
//! ```rust
//! ```rust,ignore
//! extern crate steamlocate;
//! use steamlocate::SteamDir;
//!
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 11579ef

Please sign in to comment.