.github/workflows/ci.yml
name: CI
on:
push: {}
pull_request:
types: [opened, synchronize]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.owner.login != 'lgierth'
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- '2.1.9' # earliest supported by ruby/setup-ruby
- '2.6.0' # test Promise.map_value ruby version condition
- '3.0' # latest released
- 'jruby'
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake