Skip to content

Update build.yml

Update build.yml #145

Workflow file for this run

name: Build + Test
on: [pull_request, push]
jobs:
build:
name: Build + Test
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.6', '2.7', '3.0', '3.1', '3.2' ]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install Bundler
run: |
if [[ ${{ matrix.ruby }} == '2.6' or ${{ matrix.ruby }} == '2.7' ]]; then
gem install bundler -v 2.4.22
else
gem install bundler
fi
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake