mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
github_runner_matrix: include arch in Linux job names
This will make it easier to distinguish the two jobs in the GitHub UI.
This commit is contained in:
parent
a47388880d
commit
7274fb183d
@ -92,7 +92,7 @@ class GitHubRunnerMatrix
|
|||||||
end
|
end
|
||||||
|
|
||||||
LinuxRunnerSpec.new(
|
LinuxRunnerSpec.new(
|
||||||
name: "Linux",
|
name: "Linux #{arch}",
|
||||||
runner: linux_runner,
|
runner: linux_runner,
|
||||||
container: {
|
container: {
|
||||||
image: "ghcr.io/homebrew/ubuntu22.04:master",
|
image: "ghcr.io/homebrew/ubuntu22.04:master",
|
||||||
|
@ -90,7 +90,7 @@ RSpec.describe GitHubRunnerMatrix do
|
|||||||
|
|
||||||
expect(runner_matrix.runners.all?(&:active)).to be(false)
|
expect(runner_matrix.runners.all?(&:active)).to be(false)
|
||||||
expect(runner_matrix.runners.any?(&:active)).to be(true)
|
expect(runner_matrix.runners.any?(&:active)).to be(true)
|
||||||
expect(get_runner_names(runner_matrix)).to eq(["Linux"])
|
expect(get_runner_names(runner_matrix)).to eq(["Linux x86_64"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ RSpec.describe GitHubRunnerMatrix do
|
|||||||
|
|
||||||
expect(runner_matrix.runners.all?(&:active)).to be(false)
|
expect(runner_matrix.runners.all?(&:active)).to be(false)
|
||||||
expect(runner_matrix.runners.any?(&:active)).to be(true)
|
expect(runner_matrix.runners.any?(&:active)).to be(true)
|
||||||
expect(get_runner_names(runner_matrix).sort).to eq(["Linux", "macOS #{v}-arm64"])
|
expect(get_runner_names(runner_matrix).sort).to eq(["Linux x86_64", "macOS #{v}-arm64"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -276,7 +276,7 @@ RSpec.describe GitHubRunnerMatrix do
|
|||||||
allow(Formula).to receive(:all).and_return([testball, testball_depender_linux].map(&:formula))
|
allow(Formula).to receive(:all).and_return([testball, testball_depender_linux].map(&:formula))
|
||||||
|
|
||||||
matrix = described_class.new([testball], ["deleted"], all_supported: false, dependent_matrix: true)
|
matrix = described_class.new([testball], ["deleted"], all_supported: false, dependent_matrix: true)
|
||||||
expect(get_runner_names(matrix)).to eq(["Linux"])
|
expect(get_runner_names(matrix)).to eq(["Linux x86_64"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user