Skip to content

Commit

Permalink
run github workflows on ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
g-arjones committed Jul 10, 2024
1 parent 195011f commit 48eef54
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ jobs:

strategy:
matrix:
ruby-version: ["2.7", "2.6", "2.5"]
ruby-version:
- "3.0"
- "2.7"
- "2.6"
- "2.5"

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ jobs:

strategy:
matrix:
ruby-version: ["2.7", "2.6", "2.5"]
ruby-version:
- "3.0"
- "2.7"
- "2.6"
- "2.5"

steps:
- uses: actions/checkout@v2
Expand Down
32 changes: 16 additions & 16 deletions test/packages/test_autotools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, "/my/autogen/script",
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -247,8 +247,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, "/my/autogen/script",
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -269,8 +269,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /automake/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand Down Expand Up @@ -315,8 +315,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /automake/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -335,8 +335,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /automake/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -355,8 +355,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /automake/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -375,8 +375,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /automake/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -395,8 +395,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /autoheader/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand Down

0 comments on commit 48eef54

Please sign in to comment.