Skip to content

Commit

Permalink
Test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Feb 13, 2024
1 parent 01068bb commit 79eb6fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/xtask-bump-check/src/xtask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,12 @@ fn beta_and_stable_branch(repo: &git2::Repository) -> CargoResult<[git2::Branch<
for branch in repo.branches(Some(git2::BranchType::Remote))? {
let (branch, _) = branch?;
let name = branch.name()?.unwrap();
std::println!("Branch: {}", name);
let Some((_, version)) = name.split_once("/solana-") else {
tracing::trace!("branch `{name}` is not in the format of `<remote>/solana-<semver>`");
continue;
};
std::println!("Version: {}", version);
let Ok(version) = version.parse::<semver::Version>() else {
tracing::trace!("branch `{name}` is not a valid semver: `{version}`");
continue;
Expand All @@ -294,6 +296,7 @@ fn beta_and_stable_branch(repo: &git2::Repository) -> CargoResult<[git2::Branch<
assert_eq!(stable.0.patch, 0);
assert_ne!(beta.0.minor, stable.0.minor);

std::println!("beta: {}, stable: {}", beta.1.name().unwrap().unwrap(), stable.1.name().unwrap().unwrap());
Ok([beta.1, stable.1])
}

Expand Down

0 comments on commit 79eb6fb

Please sign in to comment.