name: Ruby CI on: push: branches: - master - 1.x pull_request: branches: - master - 1.x jobs: test: runs-on: ubuntu-latest env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }} strategy: fail-fast: false matrix: ruby: [2.7, "3.0", "3.1", "jruby"] gemfile: - "active_support_6_0" - "active_support_6_1" - "active_support_7_0" exclude: - ruby: "jruby" gemfile: "active_support_7_0" - ruby: "3.0" gemfile: "active_support_6_0" - ruby: "3.1" gemfile: "active_support_6_0" steps: - uses: actions/checkout@v2 - name: Set up CouchDB uses: cobot/couchdb-action@v4 with: couchdb version: "2.3.1" - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - name: Run tests run: bundle exec rake spec_ci