mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Fix logic error in active_runner?
We should only activate a runner when there are deleted formulae if it isn't a dependent matrix.
This commit is contained in:
parent
3588f1b8c5
commit
c61492ac91
@ -210,9 +210,10 @@ class GitHubRunnerMatrix
|
||||
|
||||
sig { params(runner: GitHubRunner).returns(T::Boolean) }
|
||||
def active_runner?(runner)
|
||||
return true if @all_supported || @deleted_formulae.present?
|
||||
return true if @all_supported
|
||||
return true if @deleted_formulae.present? && !@dependent_matrix
|
||||
|
||||
testable_formulae(runner).present?
|
||||
runner.spec.testing_formulae.present?
|
||||
end
|
||||
|
||||
sig { params(runner: GitHubRunner).returns(T::Array[TestRunnerFormula]) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user