From c56174cf52be394c0bd72f456b9283214263e633 Mon Sep 17 00:00:00 2001 From: Grey Moore Date: Mon, 16 Oct 2023 10:45:07 -0400 Subject: [PATCH] Run CI against ruby 3 as well (#6) * run CI against ruby 2.7, 3.0, 3.1, and 3.2 * try newer setup-ruby and version syntax --- .github/workflows/ci.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97c0804..d08b9ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,21 +4,32 @@ on: [push] jobs: test: runs-on: ubuntu-latest + + strategy: + matrix: + ruby-version: ['2.7', '3.0', '3.1', '3.2'] + steps: - uses: actions/checkout@v2 - - uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6 + - uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - run: bundle install - run: bundle exec rspec + rubocop: runs-on: ubuntu-latest + + strategy: + matrix: + ruby-version: ['2.7', '3.0', '3.1', '3.2'] + steps: - uses: actions/checkout@v2 - - uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6 + - uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - run: bundle install - run: bundle exec rubocop