Skip to content

Commit 55ac922

Browse files
authored
Added Ruby 3 to CI test matrix (#30)
1 parent 3e252fe commit 55ac922

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,38 @@ on: [push, pull_request]
1313

1414
jobs:
1515
audit:
16+
strategy:
17+
matrix:
18+
ruby: [2.7, 3.0]
1619
runs-on: ubuntu-latest
1720
steps:
1821
- uses: actions/checkout@v2
1922
- uses: ruby/setup-ruby@v1
2023
with:
2124
bundler-cache: true
22-
ruby-version: "2.7"
25+
ruby-version: ${{ matrix.ruby }}
2326
- run: bundle exec bundler-audit check --update
2427
lint:
28+
strategy:
29+
matrix:
30+
ruby: [2.7, 3.0]
2531
runs-on: ubuntu-latest
2632
steps:
2733
- uses: actions/checkout@v2
2834
- uses: ruby/setup-ruby@v1
2935
with:
3036
bundler-cache: true
31-
ruby-version: "2.7"
37+
ruby-version: ${{ matrix.ruby }}
3238
- run: bundle exec rubocop
3339
test:
40+
strategy:
41+
matrix:
42+
ruby: [2.7, 3.0]
3443
runs-on: ubuntu-latest
3544
steps:
3645
- uses: actions/checkout@v2
3746
- uses: ruby/setup-ruby@v1
3847
with:
3948
bundler-cache: true
40-
ruby-version: "2.7"
49+
ruby-version: ${{ matrix.ruby }}
4150
- run: bundle exec rake test

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ require:
1010
inherit_mode:
1111
merge:
1212
- Exclude
13+
- TargetRubyVersion
14+
15+
AllCops:
16+
TargetRubyVersion: 2.7

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.3
1+
3.0.1

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ GEM
3333
byebug (11.1.3)
3434
concurrent-ruby (1.1.8)
3535
diff-lcs (1.4.4)
36-
docile (1.3.5)
37-
faker (2.17.0)
36+
docile (1.4.0)
37+
faker (2.18.0)
3838
i18n (>= 1.6, < 2)
3939
git (1.8.1)
4040
rchardet (~> 1.8)
@@ -118,4 +118,4 @@ DEPENDENCIES
118118
simplecov (~> 0.17)
119119

120120
BUNDLED WITH
121-
2.2.16
121+
2.2.17

0 commit comments

Comments
 (0)