name: Ruby on: push: branches: - master pull_request: branches: - master jobs: build: runs-on: ubuntu-latest strategy: fail-fast: false matrix: include: - ruby-version: 2.5 - ruby-version: 2.6 - ruby-version: 2.4 bundler-version: 1.17.3 gemfile: gemfiles/rails_4.gemfile - ruby-version: 2.6 gemfile: gemfiles/rails_5.0.gemfile - ruby-version: 2.6 gemfile: gemfiles/rails_5.1.gemfile - ruby-version: 2.6 gemfile: gemfiles/rails_5.2.gemfile - ruby-version: 2.6 gemfile: gemfiles/rails_6.0.gemfile steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} - name: Build and test env: BUNDLE_GEMFILE: ${{ matrix.gemfile }} BUNDLER: ${{ matrix.bundler-version }} run: | gem uninstall bundler gem install bundler -v ${BUNDLER:-2.1.4} bundle install --jobs 4 --retry 3 bundle exec rake