Commit 6384719
Migrate from Travis CI to GitHub Actions
This commit migrates the CI pipeline from Travis CI to GitHub Actions,
adds support for Ruby 3.x, and resolves dependency version conflicts.
Changes:
- Add GitHub Actions workflow (.github/workflows/ci.yml)
- Test matrix: Ruby 3.1, 3.2, 3.3
- Test matrix: pagy, kaminari, will_paginate paginators
- Uses ruby/setup-ruby with bundler caching for faster builds
- Remove Travis CI configuration (.travis.yml)
- Update dependencies for Ruby 3.x compatibility (api-pagination.gemspec)
- Upgrade Rails from 6.1 to 7.0 (required for Ruby 3.0+)
- Upgrade activerecord-nulldb-adapter from 0.7.0 to 0.9.0
- Constrain Pagy to 9.4.0-9.x (v10+ has breaking changes)
- Fix Pagy 9.x API compatibility (lib/api-pagination.rb:66-77)
- Use explicit keyword arguments for Pagy.new() (required in 9.x)
- Add comment explaining the keyword argument requirement
- Fix Gemfile version constraints to prevent Bundler from overriding
gemspec requirements (Gemfile:6-10)
- Without explicit constraints, Bundler may install incompatible versions
- This was causing Pagy 43.x to be installed instead of 9.x on some Ruby versions
Known Issues:
- Ruby 3.2/3.3 have 1 pre-existing test failure in Kaminari/WillPaginate tests
(spec/rails_spec.rb:273 - Fixnum monkey-patching incompatibility)
- All Pagy tests pass on all Ruby versions
- Ruby 3.1 passes all tests for all paginators
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 277ac97 commit 6384719
File tree
5 files changed
+46
-21
lines changed- .github/workflows
- lib
5 files changed
+46
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
0 commit comments