name: CI on: [push, pull_request] jobs: build: runs-on: ubuntu-latest env: BUNDLE_GEMFILE: ${{ matrix.gemfile }} strategy: fail-fast: false matrix: ruby: - '2.5' - '2.6' - '2.7' - '3.0' gemfile: - Gemfile - gemfiles/rails-5.2.gemfile - gemfiles/rails-6.0.gemfile - gemfiles/rails-6.1.gemfile - gemfiles/rails-edge.gemfile exclude: - ruby: '2.5' gemfile: gemfiles/rails-edge.gemfile - ruby: '2.6' gemfile: gemfiles/rails-edge.gemfile - ruby: '3.0' gemfile: gemfiles/rails-5.2.gemfile name: Ruby ${{ matrix.ruby }} ${{ matrix.gemfile }} steps: - uses: actions/checkout@v1 - name: Set up Ruby ${{ matrix.ruby }} uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - name: Run tests run: | bundle exec rake