Merge pull request #344 from grosser/grosser/read #85
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: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql | |
strategy: | |
matrix: | |
ruby: [ '2.7', '3.0', '3.1', '3.2' ] | |
task: [ 'spec' ] | |
include: | |
- ruby: 2.7 # keep in sync with lowest version | |
task: rubocop | |
name: ${{ matrix.ruby }} rake ${{ matrix.task }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- run: bundle exec rake ${{ matrix.task }} |