Update build.yml #145
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |