fix CI: replace removed macOS runner, deprecated use of Command::cargo_bin() (#4134)

* fix(ci): update macOS intel runner version

* fix(cli/tests): replace use of deprecated `Command::cargo_bin()`
This commit is contained in:
Austin Bonander
2025-12-24 21:40:53 -08:00
committed by GitHub
parent e8384f2a00
commit a2a219f175
4 changed files with 8 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
use anyhow::Context;
use assert_cmd::Command;
use assert_cmd::cargo_bin_cmd;
use std::cmp::Ordering;
use std::fs::read_dir;
use std::ops::Index;
@@ -117,7 +117,7 @@ impl AddMigrations {
sequential: bool,
expect_success: bool,
) -> anyhow::Result<&'_ Self> {
let cmd_result = Command::cargo_bin("cargo-sqlx")?
let cmd_result = cargo_bin_cmd!("cargo-sqlx")
.current_dir(&self.tempdir)
.args(
[