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: |