determine-test-runners: remove fake runner

Based on discussion from Homebrew/homebrew-core#127236.
This commit is contained in:
Carlo Cabrera 2023-04-08 01:33:53 +08:00
parent 959e2432a9
commit 8963335eea
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -44,12 +44,6 @@ module Homebrew
runner_matrix = GitHubRunnerMatrix.new(testing_formulae, deleted_formulae, dependent_matrix: args.dependents?)
runners = runner_matrix.active_runner_specs_hash
if !args.dependents? && runners.blank?
# If there are no tests to run, add a runner that is meant to do nothing
# to support making the `tests` job a required status check.
runners << { name: "macOS 13-arm64", runner: "ubuntu-latest", no_op: true }
end
github_output = ENV.fetch("GITHUB_OUTPUT")
File.open(github_output, "a") do |f|
f.puts("runners=#{runners.to_json}")