Skip to content

Commit 14ecafc

Browse files
committed
Migrate from Travis CI to GitHub Actions
- Add GitHub Actions workflow testing Ruby 2.7, 3.0, 3.1, 3.2, 3.3 - Remove outdated Travis CI config (was testing Ruby 2.3-2.5) - Update README badge Ruby 3.3 compatibility fixes: - Update rubocop from 0.71.0 to ~> 1.68 (0.71.0 incompatible with Ruby 3.3) - Simplify .rubocop.yml - Rails and Performance cops were extracted to separate gems (rubocop-rails, rubocop-performance) in RuboCop 0.72. Since sift doesn't need those cops, removed them instead of adding the extra dependencies. - Add `require "ostruct"` in test_helper (ostruct moved to gem in Ruby 3.2+) - Pin minitest to ~> 5.0 for Rails 7.x appraisals (minitest 6.0 has breaking API changes incompatible with Rails test runner) - Pin sqlite3 to ~> 1.4 for Rails 7.0/7.1 (Rails 7.0 requires sqlite3 < 2) Rails version updates: - Drop Rails 6.1 (end of life, no longer receiving security fixes) - Add Rails 7.1, 7.2, 8.0 appraisals - Update activerecord dependency to >= 7.0
1 parent 8962e91 commit 14ecafc

File tree

16 files changed

+107
-1012
lines changed

16 files changed

+107
-1012
lines changed

.github/workflows/test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
16+
gemfile:
17+
- rails_70
18+
- rails_71
19+
- rails_72
20+
- rails_80
21+
exclude:
22+
# Rails 7.2 requires Ruby >= 3.1
23+
- ruby: '2.7'
24+
gemfile: rails_72
25+
- ruby: '3.0'
26+
gemfile: rails_72
27+
# Rails 8.0 requires Ruby >= 3.2
28+
- ruby: '2.7'
29+
gemfile: rails_80
30+
- ruby: '3.0'
31+
gemfile: rails_80
32+
- ruby: '3.1'
33+
gemfile: rails_80
34+
env:
35+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: ruby/setup-ruby@v1
39+
with:
40+
ruby-version: ${{ matrix.ruby }}
41+
bundler-cache: true
42+
- run: bundle exec rake test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
log/*.log
33
*.swp
44
Gemfile.lock
5+
gemfiles/*.lock
56
pkg/
67
test/dummy/db/*.sqlite3
78
test/dummy/db/*.sqlite3-journal

0 commit comments

Comments
 (0)