Skip to content

Test

Test #636

Workflow file for this run

name: Test
on: [push, pull_request]
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
build:
strategy:
matrix:
ruby: [ 'head', '3.1', '3.0', '2.7' ]
os:
- windows-latest
- ubuntu-latest
include:
- { ruby: '3.1', os: 'macos-latest' }
- { ruby: 'jruby-head', os: 'ubuntu-latest' }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Set up Ruby
uses: ruby/setup-ruby@c7079efafd956afb5d823e8999c2506e1053aefa # v1.126.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # 'bundle install' and cache
# Avoid issues on these platforms
- if: ${{ matrix.ruby == '2.6' }}
run: gem update --system
- name: Run test
run: bundle exec rake
env:
RUBYOPT: --enable-frozen_string_literal
- if: ${{ matrix.ruby == 'head' && startsWith(matrix.os, 'ubuntu') }}
run: bundle exec rake rubocop