Skip to content

Commit 21f6451

Browse files
authored
Add Ruby 4 to CI; drop Ruby 3.1 (#213)
1 parent f9afbf0 commit 21f6451

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,23 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
ruby: ["3.1", "3.2", "3.3", "3.4", "head"]
23+
ruby: ["3.2", "3.3", "3.4", "4.0", "head"]
2424
steps:
2525
- uses: actions/checkout@v6
2626
- uses: ruby/setup-ruby@v1
2727
with:
2828
ruby-version: ${{ matrix.ruby }}
2929
bundler-cache: true
3030
- run: bundle exec rake test
31+
test-all:
32+
name: "Test / All"
33+
runs-on: ubuntu-latest
34+
needs: test
35+
if: always()
36+
steps:
37+
- name: All tests ok
38+
if: ${{ !(contains(needs.*.result, 'failure')) }}
39+
run: exit 0
40+
- name: Some tests failed
41+
if: ${{ contains(needs.*.result, 'failure') }}
42+
run: exit 1

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ AllCops:
88
DisplayCopNames: true
99
DisplayStyleGuide: true
1010
NewCops: enable
11-
TargetRubyVersion: 3.1
11+
TargetRubyVersion: 3.2
1212
Exclude:
1313
- "tmp/**/*"
1414
- "vendor/**/*"

example.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
1111
spec.summary = ""
1212
spec.homepage = "https://github.com/mattbrictson/gem"
1313
spec.license = "MIT"
14-
spec.required_ruby_version = ">= 3.1"
14+
spec.required_ruby_version = ">= 3.2"
1515

1616
spec.metadata = {
1717
"bug_tracker_uri" => "https://github.com/mattbrictson/gem/issues",

rename_template.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ def assert_git_repo!
143143
exit(1)
144144
end
145145

146-
def git(*args)
147-
sh! "git", *args
146+
def git(*)
147+
sh!("git", *)
148148
end
149149

150150
def ensure_executable(path)

0 commit comments

Comments
 (0)