Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MacOS to CI matrix #185

Merged
merged 2 commits into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading