GitHub Actions: test with many versions of Ruby

dev
Andy Meneely 2020-11-17 23:54:11 -05:00
parent ea9a749d52
commit 1f08b880ce
1 changed files with 13 additions and 9 deletions

View File

@ -4,15 +4,19 @@ name: Squib Unit Tests
on: [push] on: [push]
jobs: jobs:
tests: test:
runs-on: ubuntu-latest strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
ruby: [2.5, 2.6, 2.7, head, debug, jruby, jruby-head, truffleruby, truffleruby-head]
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Set up Ruby 2.6 - uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@v1
with: with:
ruby-version: 2.6 ruby-version: ${{ matrix.ruby }}
# bundler-cache: true # bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle install - run: bundle install
- run: bundle exec rake - run: bundle exec rake