name: Test Henkei Ruby gem on: push: branches: [1.x] pull_request: branches: [1.x] env: CI: true jobs: test: runs-on: ubuntu-latest strategy: matrix: ruby-version: ['2.6', '2.7', '3.0', '3.1'] steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - name: Lint code - Rubocop run: bundle exec rubocop - name: Run tests run: bundle exec rspec - name: Test & publish code coverage uses: paambaati/codeclimate-action@v3.0.0 env: CC_TEST_REPORTER_ID: bb96c1ff9dc66724c38fb4eb54486dd72dc88a7fd6e727c034b9cf8d747d069e