Browse Source

GitHub Actions: test with many versions of Ruby

dev
Andy Meneely 5 years ago
parent
commit
1f08b880ce
  1. 20
      .github/workflows/tests.yml

20
.github/workflows/tests.yml

@ -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

Loading…
Cancel
Save