Add new Rails/IndexNames
cop
#387
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
main: | |
name: Ruby ${{ matrix.ruby }} | |
runs-on: ubuntu-latest | |
env: | |
# See https://github.com/tmm1/test-queue#environment-variables | |
TEST_QUEUE_WORKERS: 2 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu] | |
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', 'head'] | |
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: spec | |
run: bundle exec rake spec | |
- name: internal_investigation | |
run: bundle exec rake internal_investigation | |
jruby: | |
name: JRuby 9.4 | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: jruby-9.4 | |
bundler-cache: true | |
- name: spec | |
run: bundle exec rake spec | |
- name: internal_investigation | |
run: bundle exec rake internal_investigation | |
prism: | |
runs-on: ubuntu-latest | |
name: Prism | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
# Specify the minimum Ruby version 2.7 required for Prism to run. | |
ruby-version: 2.7 | |
bundler-cache: true | |
- name: spec | |
env: | |
PARSER_ENGINE: parser_prism | |
run: bundle exec rake prism_spec | |
documentation_checks: | |
runs-on: ubuntu-latest | |
name: Check documentation syntax | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
- name: test | |
run: bundle exec rake documentation_syntax_check | |
oldest_supported_rubocop: | |
runs-on: ubuntu-latest | |
name: Check the oldest supported RuboCop version | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use the oldest supported RuboCop | |
run: | | |
sed -e "/gem 'rubocop', github: 'rubocop\/rubocop'/d" \ | |
-e "/gem 'rubocop-performance',/d" \ | |
-e "/gem 'rubocop-rspec',/d" -i Gemfile | |
cat << EOF > Gemfile.local | |
gem 'rubocop', '1.52.0' # Specify the oldest supported RuboCop version | |
EOF | |
- name: set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
- name: spec | |
run: bundle exec rake spec |