diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a11f0e9..e5dfa423 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,7 @@ jobs: bundler-cache: true - name: Run tests run: bin/ci + continue-on-error: ${{ matrix.ruby == 'truffleruby-head' }} lint: runs-on: ubuntu-latest steps: diff --git a/Rakefile b/Rakefile index 59067f90..10c3076e 100644 --- a/Rakefile +++ b/Rakefile @@ -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