name: CI on: [push, pull_request] jobs: rubocop: runs-on: ubuntu-latest strategy: fail-fast: false steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: bundler-cache: true - name: Run test run: bundle exec rubocop install: runs-on: ubuntu-latest strategy: fail-fast: false steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: '3.3' bundler-cache: true - name: Install gem run: bundle exec rake install rubies: runs-on: ubuntu-latest strategy: fail-fast: false matrix: ruby: [ ruby-head, '3.3', '3.2', '3.1'] rails: [ '7.2', '7.1'] include: - ruby: '2.7' rails: '7.1' - ruby: '3.0' rails: '7.1' env: BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails }}.gemfile steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - name: Run test run: bundle exec rake