Skip to content

Commit

Permalink
Merge pull request #185 from UebelAndre/macos
Browse files Browse the repository at this point in the history
Add MacOS to CI matrix
  • Loading branch information
Byron authored Feb 8, 2025
2 parents 0b0ceb8 + 55ff57a commit 973f2e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
rust:
- stable
Expand Down
12 changes: 11 additions & 1 deletion tests/git/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,24 @@ pub(crate) mod with_https {
let mut last_time = SystemTime::now();
let desired = 500;
let mut count = 0;
let mut missing = 0;
for c in ch.take(desired) {
let c = c.unwrap();
count += 1;
index.crate_(&c.crate_name()).unwrap();
if index.crate_(&c.crate_name()).is_none() {
eprintln!(
"{} is changed but couldn't be found in the Git database",
c.crate_name()
);
missing += 1
}
assert!(last_time >= c.time());
last_time = c.time();
}
assert_eq!(count, desired);
if missing != 0 {
eprintln!("Couldn't find {missing} crates when looking them up - strange")
}
}

#[test]
Expand Down

0 comments on commit 973f2e5

Please sign in to comment.