Skip to content
Merged
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
16 changes: 12 additions & 4 deletions .github/workflows/ruby-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ on:

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
gemfile:
- minitest4
- minitest5
- test_unit_gem
ruby:
Expand All @@ -25,16 +26,23 @@ jobs:
- ruby-3.3
- ruby-3.4
- ruby-4.0
- jruby
- truffleruby
include:
- { os: ubuntu-latest, gemfile: minitest4, ruby: ruby-2.7 }
- { os: ubuntu-latest, gemfile: minitest4, ruby: ruby-4.0 }
- { os: macos-latest, gemfile: minitest5, ruby: ruby-2.7 }
- { os: macos-latest, gemfile: minitest5, ruby: ruby-4.0 }
runs-on: ${{ matrix.os }}
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v6
- name: Install
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test
run: bundle exec rake
run: bundle exec rake test
6 changes: 1 addition & 5 deletions test/everything_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ def test_missing_file_gives_a_decent_error_message
output = m "examples/thisdoesnexist_test.rb"
assert !$?.success?
assert_match(/Failed loading test file/, output)
if defined? JRUBY_VERSION
assert_match(/no such file to load/, output)
else
assert_match(/cannot load such file/, output)
end
assert_match(/cannot load such file/, output)
end

def test_running_tests_within_a_subdirectory
Expand Down