name: Build on: push: branches: [master] pull_request: jobs: rspec: runs-on: ubuntu-latest env: BUNDLE_JOBS: 4 BUNDLE_RETRY: 3 BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile strategy: fail-fast: false matrix: ruby: ["2.6", "2.7", "3.0", "3.1"] gemfile: ["rails60", "rails61", "rails70"] exclude: - ruby: "2.6" gemfile: "rails70" - ruby: "3.1" gemfile: "rails60" - ruby: "3.1" gemfile: "rails61" steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - name: Run rspec run: bundle exec rspec