name: Test Henkei Ruby gem on: push: branches: [main] pull_request: branches: [main] env: CI: true jobs: test: runs-on: ubuntu-latest strategy: matrix: ruby-version: ['3.0', '3.1', '3.2', '3.3'] steps: - uses: actions/checkout@v3 - 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.2.0 env: CC_TEST_REPORTER_ID: bb96c1ff9dc66724c38fb4eb54486dd72dc88a7fd6e727c034b9cf8d747d069e