name: Ruby Tests on: push: branches: [ master ] pull_request: branches: [ master ] jobs: test: name: Specs - Ruby ${{ matrix.ruby-version }} ${{matrix.gemfile}} runs-on: ubuntu-latest env: CC_TEST_REPORTER_ID: 2a6849be8214739deef0090b810b945ce9a550a4d8279d242cb03242d1ad53c5 BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile strategy: matrix: gemfile: - faraday-1 - faraday-2 ruby-version: - "3.1" - "3.0" - "2.7" - "2.6" - jruby - truffleruby steps: - uses: actions/checkout@v2 - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} - name: Install dependencies run: bundle install - name: Run tests run: bundle exec rake test - name: Upload Coverage uses: paambaati/codeclimate-action@v3.0.0 if: matrix.ruby-version == '3.1' && matrix.gemfile == 'faraday-2'