Skip to content

Commit 5197db6

Browse files
committed
switch to voxpupuli-rubocop; generate ruby CI matrix dynamically
1 parent be0d734 commit 5197db6

File tree

7 files changed

+1239
-380
lines changed

7 files changed

+1239
-380
lines changed

.github/workflows/lint.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/tests.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,30 @@ permissions:
1111
contents: read
1212

1313
jobs:
14+
rubocop_and_matrix:
15+
runs-on: ubuntu-24.04
16+
outputs:
17+
ruby: ${{ steps.ruby.outputs.versions }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Install Ruby ${{ matrix.ruby }}
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: "3.4"
24+
bundler-cache: true
25+
- name: Run Rubocop
26+
run: bundle exec rake rubocop
27+
- id: ruby
28+
uses: voxpupuli/ruby-version@v1
1429

1530
unit:
31+
needs: rubocop_and_matrix
1632
name: "Ruby ${{ matrix.ruby }} ${{ matrix.os }}"
1733
strategy:
1834
fail-fast: false
1935
matrix:
2036
os: [ubuntu-24.04, windows-latest]
21-
ruby: ['3.2', '3.3']
37+
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
2238
runs-on: ${{ matrix.os }}
2339
steps:
2440
- name: Checkout repository
@@ -44,6 +60,7 @@ jobs:
4460

4561
tests:
4662
needs:
63+
- rubocop_and_matrix
4764
- unit
4865
runs-on: ubuntu-24.04
4966
name: Test suite

0 commit comments

Comments
 (0)