mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Re-use GITHUB_ACTION variables for filtering bundler examples.
This commit is contained in:
parent
e96321d006
commit
8a8f680f01
4 changed files with 4 additions and 7 deletions
1
.github/workflows/macos.yml
vendored
1
.github/workflows/macos.yml
vendored
|
|
@ -37,6 +37,5 @@ jobs:
|
|||
env:
|
||||
TESTOPTS: "$JOBS -q --tty=no"
|
||||
MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
|
||||
CI: "true"
|
||||
- name: Leaked Globals
|
||||
run: make -s leaked-globals
|
||||
|
|
|
|||
2
.github/workflows/ubuntu.yml
vendored
2
.github/workflows/ubuntu.yml
vendored
|
|
@ -37,7 +37,5 @@ jobs:
|
|||
- run: make $JOBS
|
||||
- name: make test-bundler/test-bundled-gems
|
||||
run: make -s ${{ matrix.test_task }}
|
||||
env:
|
||||
CI: "true"
|
||||
- name: Leaked Globals
|
||||
run: make -s leaked-globals
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ RSpec.describe Bundler::Source do
|
|||
context "with a different version" do
|
||||
let(:locked_gem) { double(:locked_gem, :name => "nokogiri", :version => "< 1.5") }
|
||||
|
||||
context "with color", :non_windows do
|
||||
context "with color", :no_color_tty do
|
||||
before { Bundler.ui = Bundler::UI::Shell.new }
|
||||
|
||||
it "should return a string with the spec name and version and locked spec version" do
|
||||
|
|
@ -77,7 +77,7 @@ RSpec.describe Bundler::Source do
|
|||
let(:spec) { double(:spec, :name => "nokogiri", :version => "1.6.1", :platform => rb) }
|
||||
let(:locked_gem) { double(:locked_gem, :name => "nokogiri", :version => "1.7.0") }
|
||||
|
||||
context "with color", :non_windows do
|
||||
context "with color", :no_color_tty do
|
||||
before { Bundler.ui = Bundler::UI::Shell.new }
|
||||
|
||||
it "should return a string with the locked spec version in yellow" do
|
||||
|
|
@ -98,7 +98,7 @@ RSpec.describe Bundler::Source do
|
|||
let(:spec) { double(:spec, :name => "nokogiri", :version => "1.7.1", :platform => rb) }
|
||||
let(:locked_gem) { double(:locked_gem, :name => "nokogiri", :version => "1.7.0") }
|
||||
|
||||
context "with color", :non_windows do
|
||||
context "with color", :no_color_tty do
|
||||
before { Bundler.ui = Bundler::UI::Shell.new }
|
||||
|
||||
it "should return a string with the locked spec version in green" do
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ RSpec.configure do |config|
|
|||
config.filter_run_excluding :git => RequirementChecker.against(git_version)
|
||||
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 :non_windows => Gem.win_platform? || ENV["CI"]
|
||||
config.filter_run_excluding :no_color_tty => Gem.win_platform? || !!ENV["GITHUB_ACTION"]
|
||||
|
||||
config.filter_run_when_matching :focus unless ENV["CI"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue