.github/workflows/github-actions.yml
name: Build
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby: [jruby-9.2.9.0, jruby-9.2.11.1, 2.2.10, 2.3.8, 2.4.5, 2.5.5, 2.6.2, 2.7.1, '3.0']
runs-on: ${{ matrix.os }}
env:
NUMBER_OF_PROCESSORS: 4
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec rake ci