Skip to content

Commit

Permalink
Create GitHub Actions workflow, remove dups from Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg committed Feb 13, 2020
1 parent 6ceb82b commit 7821e9d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 5 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: jaro_winkler

on: [push, pull_request]

jobs:
build:
name: >-
${{ matrix.os }}, ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-18.04, macos ]
ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6, 2.7 ]

steps:
- name: repo checkout
uses: actions/checkout@v2

- name: setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: bundle install
run: bundle install --without benchmark --jobs 4 --retry 3

- name: test:compiled
run: rake test:compiled
- name: test:pure_ruby
run: rake test:pure_ruby

win32:
name: >-
${{ matrix.os }}, ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ windows-latest ]
ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6, 2.7 ]

steps:
- name: repo checkout
uses: actions/checkout@v2

- name: setup Ruby, update MSYS2 gcc
uses: MSP-Greg/actions-ruby@v1
with:
base: update
ruby-version: ${{ matrix.ruby }}

- name: bundle install
run: bundle install --without benchmark --jobs 4 --retry 3

- name: test:compiled
run: rake test:compiled
- name: test:pure_ruby
run: rake test:pure_ruby
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ os:
- linux
- osx
rvm:
- 2.5.0
- 2.4.3
- 2.3.5
- 2.2.9
- 2.1.10
- 2.0.0
- 1.9.3
Expand Down
2 changes: 1 addition & 1 deletion jaro_winkler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
'source_code_uri' => "https://github.com/tonytonyjan/jaro_winkler/tree/v#{spec.version}",
}
spec.files = Dir['lib/**/*.rb', 'ext/**/*.{h,c}', 'LICENSE.txt']
spec.add_development_dependency 'bundler', '~> 1.7'
spec.add_development_dependency 'bundler', '>= 1.7'
spec.add_development_dependency 'rake', '~> 12.0'
spec.add_development_dependency 'rake-compiler'
spec.add_development_dependency 'minitest'
Expand Down

0 comments on commit 7821e9d

Please sign in to comment.