GitHub Actions: test with many versions of Ruby
parent
ea9a749d52
commit
1f08b880ce
|
|
@ -1,18 +1,22 @@
|
||||||
|
|
||||||
name: Squib Unit Tests
|
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…
Reference in New Issue