Update build.yml (#520) #150
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@v4 | |
- name: Set up Ruby ${{ matrix.ruby }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Build and test with Rake | |
run: | | |
bundle exec rubocop | |
bundle exec rspec spec |