Skip to content

Commit cb5206f

Browse files
committed
Revert "switch to voxpupuli-rubocop; generate ruby CI matrix dynamically"
This reverts commit 92538f0.
1 parent 92538f0 commit cb5206f

File tree

6 files changed

+381
-1229
lines changed

6 files changed

+381
-1229
lines changed

.github/workflows/lint.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Linting
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, edited, synchronize]
6+
paths:
7+
- .github/workflows/lint.yaml
8+
- '**.rb'
9+
10+
jobs:
11+
12+
rubocop:
13+
name: Rubocop
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Setup Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: 2.7
22+
- name: Install rubocop
23+
run: |
24+
gem install rubocop --version 1.9.1
25+
gem install rubocop-rake
26+
- name: Run rubocop
27+
run: rubocop --display-cop-names --display-style-guide --parallel

.github/workflows/tests.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,14 @@ 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
2914

3015
unit:
31-
needs: rubocop_and_matrix
3216
name: "Ruby ${{ matrix.ruby }} ${{ matrix.os }}"
3317
strategy:
3418
fail-fast: false
3519
matrix:
3620
os: [ubuntu-24.04, windows-latest]
37-
ruby: ${{ steps.ruby.outputs.versions }}
21+
ruby: ['3.2', '3.3']
3822
runs-on: ${{ matrix.os }}
3923
steps:
4024
- name: Checkout repository
@@ -60,7 +44,6 @@ jobs:
6044

6145
tests:
6246
needs:
63-
- rubocop_and_matrix
6447
- unit
6548
runs-on: ubuntu-24.04
6649
name: Test suite

0 commit comments

Comments
 (0)