Skip to content

Commit 06a7605

Browse files
authored
Merge pull request #212 from yahonda/add_ruby31_to_github_actions
CI against Ruby 3.1
2 parents 85dda34 + b7706bb commit 06a7605

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.github/workflows/rubocop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v1
16-
- name: Set up Ruby 2.6
16+
- name: Set up Ruby 3.1
1717
uses: actions/setup-ruby@v1
1818
with:
19-
ruby-version: 2.6.x
19+
ruby-version: 3.1.x
2020
- name: Install required package
2121
run: |
2222
sudo apt-get install alien

.github/workflows/test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ jobs:
1212
strategy:
1313
matrix:
1414
ruby: [
15-
3.0,
16-
2.7,
17-
2.6,
18-
2.5,
15+
'3.1',
16+
'3.0',
17+
'2.7',
18+
'2.6',
19+
'2.5',
1920
ruby-head,
2021
ruby-debug
2122
]

Gemfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
source "http://rubygems.org"
22

3+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
4+
35
group :development do
46
gem "juwelier", "~> 2.0"
57
gem "rspec_junit_formatter"
@@ -19,6 +21,10 @@ group :test, :development do
1921
end
2022

2123
platforms :ruby, :mswin, :mingw do
22-
gem "ruby-oci8", "~> 2.1"
24+
if RUBY_VERSION >= "3.2"
25+
gem "ruby-oci8", github: "kubo/ruby-oci8", branch: "master"
26+
else
27+
gem "ruby-oci8", "~> 2.1"
28+
end
2329
end
2430
end

0 commit comments

Comments
 (0)