Skip to content

Commit a2a219f

Browse files
authored
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()`
1 parent e8384f2 commit a2a219f

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

.github/workflows/sqlx-cli.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- ubuntu-latest
4646
# FIXME: migrations tests fail on Windows for whatever reason
4747
# - windows-latest
48-
- macOS-13
48+
- macOS-15-intel
4949
- macOS-latest
5050

5151
timeout-minutes: 30
@@ -302,7 +302,7 @@ jobs:
302302
os:
303303
- ubuntu-latest
304304
- windows-latest
305-
- macOS-13
305+
- macOS-15-intel
306306
- macOS-latest
307307
include:
308308
- os: ubuntu-latest
@@ -312,7 +312,7 @@ jobs:
312312
- os: windows-latest
313313
target: x86_64-pc-windows-msvc
314314
bin: target/debug/cargo-sqlx.exe
315-
- os: macOS-13
315+
- os: macOS-15-intel
316316
target: x86_64-apple-darwin
317317
bin: target/debug/cargo-sqlx
318318
- os: macOS-latest

Cargo.lock

Lines changed: 2 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sqlx-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ sqlx-toml = ["sqlx/sqlx-toml"]
7676
_sqlite = []
7777

7878
[dev-dependencies]
79-
assert_cmd = "2.0.11"
79+
assert_cmd = "2.1.1"
8080
tempfile = "3.10.1"
8181

8282
[lints]

sqlx-cli/tests/add.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use anyhow::Context;
2-
use assert_cmd::Command;
2+
use assert_cmd::cargo_bin_cmd;
33
use std::cmp::Ordering;
44
use std::fs::read_dir;
55
use std::ops::Index;
@@ -117,7 +117,7 @@ impl AddMigrations {
117117
sequential: bool,
118118
expect_success: bool,
119119
) -> anyhow::Result<&'_ Self> {
120-
let cmd_result = Command::cargo_bin("cargo-sqlx")?
120+
let cmd_result = cargo_bin_cmd!("cargo-sqlx")
121121
.current_dir(&self.tempdir)
122122
.args(
123123
[

0 commit comments

Comments
 (0)