Skip to content

Commit c4a1f97

Browse files
authored
Merge pull request ruby#12 from ruby/actions
Use GitHub Actions instead of Travis CI
2 parents 151a485 + 00e8fe3 commit c4a1f97

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8+
strategy:
9+
matrix:
10+
ruby: [ 2.7, 2.6, 2.5, head ]
11+
os: [ ubuntu-latest, macos-latest ]
12+
runs-on: ${{ matrix.os }}
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: Set up Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: ${{ matrix.ruby }}
19+
- name: Install dependencies
20+
run: |
21+
gem install bundler --no-document
22+
bundle install
23+
- name: Run test
24+
run: rake test

.travis.yml

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

ostruct.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Gem::Specification.new do |spec|
1010
spec.description = %q{Class to build custom data structures, similar to a Hash.}
1111
spec.homepage = "https://github.com/ruby/ostruct"
1212
spec.license = "BSD-2-Clause"
13+
spec.required_ruby_version = ">= 2.5.0"
1314

1415
spec.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/ostruct.rb", "ostruct.gemspec"]
1516
spec.bindir = "exe"

0 commit comments

Comments
 (0)