Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
os:
- macos-latest
- ubuntu-latest
- windows-latest
exclude:
- os: windows-latest
ruby: truffleruby-head
runs-on: ${{ matrix.os }}
timeout-minutes: 10
env:
Expand Down
9 changes: 8 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ task default: %i[test rubocop]
begin
fork { nil }
rescue NotImplementedError
# jruby and windows can't fork so use vanilla rake instead
# jruby, truffleruby, and windows can't fork so use vanilla rake instead
warn 'warn: fork is not implemented on this Ruby, falling back to vanilla rake'
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << 'test'
t.test_files = FileList['test/test_*.rb']
t.verbose = true
end
else
desc 'Run each test in isolation'
task :test do
sh 'forking-test-runner test/test_* --helper test/helper.rb --verbose'
end
end

RuboCop::RakeTask.new
3 changes: 2 additions & 1 deletion bin/ci
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

set -e

if [[ "$OSTYPE" == "darwin"* ]]; then
echo $OSTYPE
if [[ "$OSTYPE" != "linux-gnu" ]]; then
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE I saw something said bash on windows was reported as linux-gnu to I added an echo to see what we get on the windows-latest runners

bundle exec rake test
else
# Sometimes minitest starts and then just hangs printing nothing.
Expand Down
Loading