Skip to content

Commit a59ab35

Browse files
committed
add CI for more RuboCop versions
1 parent 75b9d9d commit a59ab35

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/checks.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,21 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
15-
rubocop: ['0.63.1', '< 1.0']
14+
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0']
15+
rubocop: ['0.63.1', '0.84.0', '0.85.0', '0.86.0', '0.87.0', '< 1.0']
16+
include:
17+
- ruby: '2.3'
18+
rubocop: '0.63.1'
19+
- ruby: '2.3'
20+
rubocop: '0.81.0'
1621
fail-fast: false
1722
steps:
1823
- uses: actions/checkout@v2
19-
- name: configure Gemfile.local
24+
- name: use specific rubocop version
2025
run: echo "gem 'rubocop', '${{ matrix.rubocop }}'" > Gemfile.local
26+
- name: use specific rubocop-ast version (if required)
27+
if: matrix.rubocop == '0.84.0' || matrix.rubocop == '0.85.0' || matrix.rubocop == '0.85.1'
28+
run: echo "gem 'rubocop-ast', '< 0.7.0'" >> Gemfile.local
2129
- uses: ruby/setup-ruby@v1
2230
with:
2331
ruby-version: ${{ matrix.ruby }}

0 commit comments

Comments
 (0)