name: build

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: ['2.4.x', '2.5.x', '2.6.x', '2.7.x']
        include:
          - ruby: '2.7.x'
            report-coverage: true
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: actions/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Install Bundler
      run: gem install bundler
    - name: Install dependencies
      run: bundle install -j4
    - name: Test & publish code coverage
      if: matrix.report-coverage
      uses: paambaati/codeclimate-action@v2.4.0
      env:
        CC_TEST_REPORTER_ID: 309cf0784d00d2a6009566d28be111a8a0280cdeb2da280225eedf577b16beb5
      with:
        coverageCommand: bundle exec rake
    - name: Run test
      if: "!matrix.report-coverage"
      env:
        TZ: Asia/Tokyo
      run: bundle exec rake

name: build

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: ['2.4', '2.5', '2.6', '2.7']
        include:
          - ruby: '2.7'
            report-coverage: true
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Install Bundler
      run: gem install bundler
    - name: Install dependencies
      run: bundle install -j4
    - name: Test & publish code coverage
      if: matrix.report-coverage
      uses: paambaati/codeclimate-action@v2.4.0
      env:
        CC_TEST_REPORTER_ID: 309cf0784d00d2a6009566d28be111a8a0280cdeb2da280225eedf577b16beb5
      with:
        coverageCommand: bundle exec rake
    - name: Run test
      if: "!matrix.report-coverage"
      env:
        TZ: Asia/Tokyo
      run: bundle exec rake

Use ruby/setup-ruby instead of actions/setup-ruby
Use ruby/setup-ruby instead of actions/setup-ruby
