Skip to content

Test

Test #642

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
ruby: [ 'head', '3.0', '2.7', '2.6', '2.5' ]
os:
- windows-latest
- ubuntu-latest
include:
- { ruby: '2.7', os: 'macos-latest' }
- { ruby: 'jruby-9.2.19.0', os: 'ubuntu-latest' }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # 'bundle install' and cache
# Avoid issues on these platforms
- if: ${{ matrix.ruby == '2.5' || matrix.ruby == '2.6' }}
run: gem update --system
- name: Run test
run: bundle exec rake
env:
RUBYOPT: --enable-frozen_string_literal