From 827c73d34787aa98e0960b4693a0bc1b2295c3fd Mon Sep 17 00:00:00 2001 From: infiton Date: Mon, 4 Jul 2022 11:27:56 -0400 Subject: [PATCH] run CI on all supported ruby versions --- .github/workflows/ruby.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index db7dc43..c1f2f0c 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ main ] + branches: [ master ] pull_request: - branches: [ main ] + branches: [ master ] jobs: test: @@ -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 @@ -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