Skip to content

Commit

Permalink
run CI on all supported ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
infiton committed Jul 4, 2022
1 parent 12d97c8 commit 827c73d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ main ]
branches: [ master ]
pull_request:
branches: [ main ]
branches: [ master ]

jobs:
test:
Expand All @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
ruby-version: ['2.4', '2.5']
ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1']

steps:
- uses: actions/checkout@v2
Expand All @@ -22,7 +22,8 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: rubocop
- if: ${{ matrix.ruby-version == '3.1' }}
name: rubocop
run: bundle exec rubocop
- name: tests
run: bundle exec rake test

0 comments on commit 827c73d

Please sign in to comment.