Add Rubocop to the project #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Rspec Rebound | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| ruby-version: 3.3 | |
| - name: Run rubocop | |
| run: | | |
| bundle exec rubocop | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| gemfile: [rspec_3.3.gemfile, rspec_3.4.gemfile, rspec_3.5.gemfile, rspec_3.7.gemfile, rspec_3.9.gemfile, rspec_3.10.gemfile, rspec_3.11.gemfile, rspec_3.12.gemfile, rspec_3.13.gemfile] | |
| ruby-version: [ '2.7', '3.0', '3.1', '3.3', '3.4'] | |
| exclude: | |
| - ruby-version: '2.7' | |
| gemfile: 'rspec_3.13.gemfile' | |
| - ruby-version: '2.7' | |
| gemfile: 'rspec_3.12.gemfile' | |
| - ruby-version: '2.7' | |
| gemfile: 'rspec_3.11.gemfile' | |
| - ruby-version: '2.7' | |
| gemfile: 'rspec_3.10.gemfile' | |
| - ruby-version: '2.7' | |
| gemfile: 'rspec_3.9.gemfile' | |
| - ruby-version: '2.7' | |
| gemfile: 'rspec_3.8.gemfile' | |
| - ruby-version: '3.3' | |
| gemfile: 'rspec_3.3.gemfile' | |
| - ruby-version: '3.3' | |
| gemfile: 'rspec_3.4.gemfile' | |
| - ruby-version: '3.3' | |
| gemfile: 'rspec_3.5.gemfile' | |
| env: | |
| BUNDLE_GEMFILE: spec/gemfiles/${{ matrix.gemfile }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Ruby ${{ matrix.ruby-version }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| - name: Run tests | |
| run: | | |
| bundle exec rspec |