From bfcdb2398ee1c25624760874e59dfaa826b4a679 Mon Sep 17 00:00:00 2001 From: "Dmytro (Dima) Kabanov" Date: Mon, 25 Nov 2024 11:38:54 -0800 Subject: [PATCH] Add ruby version --- .github/workflows/rspec.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index c953434..fcef784 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -3,12 +3,16 @@ on: push jobs: run-rspec-tests: runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['3.1', '3.0', '2.7'] steps: - name: Checkout the code uses: actions/checkout@v3 - - name: Setup Ruby - uses: ruby/setup-ruby@v1 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 with: + ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - name: Run tests run: |