name: Ruby on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-20.04 strategy: matrix: ruby: [ '2.6', '2.7', '3.0', '3.1' ] name: Ruby ${{ matrix.ruby }} Tests steps: - uses: actions/checkout@v2 - uses: actions/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - uses: actions/cache@v2 with: path: vendor/bundle key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} restore-keys: | ${{ runner.os }}-gems- - run: | gem install bundler -N bundle install --jobs 10 bundle exec rspec