Skip to content

Commit eac1e70

Browse files
committed
migrate to github actions
1 parent 30c1552 commit eac1e70

File tree

10 files changed

+52
-38
lines changed

10 files changed

+52
-38
lines changed

.github/workflows/tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI Ruby
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
services:
10+
postgres:
11+
image: postgres
12+
13+
strategy:
14+
matrix:
15+
ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4']
16+
gemfile: ['7.0', '7.1', '7.2', '8.0']
17+
18+
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
19+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: ${{ matrix.ruby-version }}
26+
- run: bundle install
27+
- run: bundle exec rspec

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

gemfiles/5.0.gemfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

gemfiles/5.2.gemfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

gemfiles/6.0.gemfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

gemfiles/7.0.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'activerecord', '~> 7.0.0'
4+
gem 'activesupport', '~> 7.0.0'
5+
6+
gemspec path: '../'

gemfiles/7.1.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'activerecord', '~> 7.1.0'
4+
gem 'activesupport', '~> 7.1.0'
5+
6+
gemspec path: '../'

gemfiles/7.2.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'activerecord', '~> 7.2.0'
4+
gem 'activesupport', '~> 7.2.0'
5+
6+
gemspec path: '../'

gemfiles/8.0.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'activerecord', '~> 8.0.0'
4+
gem 'activesupport', '~> 8.0.0'
5+
6+
gemspec path: '../'

translateable.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ Gem::Specification.new do |spec|
2626
spec.add_dependency 'activesupport', '>= 5.0'
2727
spec.add_dependency 'i18n'
2828
spec.add_dependency 'pg'
29+
spec.add_dependency 'ostruct'
2930
end

0 commit comments

Comments
 (0)