Skip to content

Commit e1dbfeb

Browse files
authored
Merge pull request #13 from ruby/actions
Use GitHub Actions instead of Travis CI
2 parents ed5058e + 3244d82 commit e1dbfeb

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
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, 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 & 4 deletions
This file was deleted.

matrix.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
1717
spec.description = %q{An implementation of Matrix and Vector classes.}
1818
spec.homepage = "https://github.com/ruby/matrix"
1919
spec.license = "BSD-2-Clause"
20+
spec.required_ruby_version = ">= 2.5.0"
2021

2122
spec.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/matrix.rb", "lib/matrix/eigenvalue_decomposition.rb", "lib/matrix/lup_decomposition.rb", "lib/matrix/version.rb", "matrix.gemspec"]
2223
spec.bindir = "exe"

0 commit comments

Comments
 (0)