Add RuboCop linting and newline enforcement #292
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: Ruby | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| rails_6_1: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.0.6 | |
| bundler-cache: true | |
| - name: Run tests | |
| run: bundle exec rake | |
| - name: Run interaction tests | |
| run: ./specs_e2e/rails_6_1/test.sh | |
| env: | |
| CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
| rails_7_2: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.1.3 | |
| bundler-cache: true | |
| - name: Run tests | |
| run: bundle exec rake | |
| - run: gem uninstall -v '>= 2' -ax bundler || true | |
| - run: gem install bundler -v '< 2' | |
| - name: Run interaction tests | |
| run: ./specs_e2e/rails_7_2/test.sh | |
| env: | |
| CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
| rails_8: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.2.2 | |
| bundler-cache: true | |
| - name: Run tests | |
| run: bundle exec rake | |
| - run: gem uninstall -v '>= 2' -ax bundler || true | |
| - run: gem install bundler -v '< 2' | |
| - name: Run interaction tests | |
| run: ./specs_e2e/rails_8/test.sh | |
| env: | |
| CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} |