name: CI on: [push, pull_request] jobs: test: runs-on: ubuntu-latest strategy: fail-fast: false matrix: ruby: [ 2.3, 2.4, 2.5, 2.6, 2.7, 3.0 ] gemfile: ["omniauth1", "omniauth2"] env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps BUNDLE_GEMFILE: Gemfile-${{ matrix.gemfile }} steps: - uses: actions/checkout@v2 - name: Setup Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Build and test run: bin/rspec