Added example filter for Linux of GitHub Actions.

This commit is contained in:
Hiroshi SHIBATA 2019-08-12 09:01:00 +09:00
Родитель 8a8f680f01
Коммит ed9d59afc8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -55,7 +55,7 @@ RSpec.describe "bundle exec" do
expect(out).to eq("hi") expect(out).to eq("hi")
end end
it "respects custom process title when loading through ruby" do it "respects custom process title when loading through ruby", :github_action_linux do
script_that_changes_its_own_title_and_checks_if_picked_up_by_ps_unix_utility = <<~RUBY script_that_changes_its_own_title_and_checks_if_picked_up_by_ps_unix_utility = <<~RUBY
Process.setproctitle("1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16") Process.setproctitle("1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16")
puts `ps -eo args | grep [1]-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16` puts `ps -eo args | grep [1]-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16`

Просмотреть файл

@ -74,6 +74,7 @@ RSpec.configure do |config|
config.filter_run_excluding :bundler => RequirementChecker.against(Bundler::VERSION.split(".")[0]) config.filter_run_excluding :bundler => RequirementChecker.against(Bundler::VERSION.split(".")[0])
config.filter_run_excluding :ruby_repo => !(ENV["BUNDLE_RUBY"] && ENV["BUNDLE_GEM"]).nil? config.filter_run_excluding :ruby_repo => !(ENV["BUNDLE_RUBY"] && ENV["BUNDLE_GEM"]).nil?
config.filter_run_excluding :no_color_tty => Gem.win_platform? || !!ENV["GITHUB_ACTION"] config.filter_run_excluding :no_color_tty => Gem.win_platform? || !!ENV["GITHUB_ACTION"]
config.filter_run_excluding :github_action_linux => !!ENV["GITHUB_ACTION"] && (ENV["RUNNER_OS"] == "Linux")
config.filter_run_when_matching :focus unless ENV["CI"] config.filter_run_when_matching :focus unless ENV["CI"]