Add ruby3.2 to CI matrix #33
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
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake | |
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby | |
name: Ruby | |
on: [pull_request, push] | |
permissions: | |
contents: read | |
defaults: | |
run: | |
working-directory: rubocop-airbnb | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: # use bundler 2.3 for ruby versions < 2.6 (https://bundler.io/compatibility.html) | |
- ruby-version: '2.6' | |
bundler-version: latest | |
- ruby-version: '2.7' | |
bundler-version: latest | |
- ruby-version: '3.0' | |
bundler-version: latest | |
- ruby-version: '3.1' | |
bundler-version: latest | |
- ruby-version: '3.2' | |
bundler-version: latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler: ${{ matrix.bundler-version }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
working-directory: rubocop-airbnb | |
- name: Run rspec | |
run: bundle exec rspec | |
- name: Run rubocop | |
run: bundle exec rubocop --config .rubocop.yml --fail-fast -d |