Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Continuous Integration

on:
push:
branches:
- master
- main
- "*-stable"
pull_request:
branches:
- master
- main
- "*-stable"

jobs:
ci:
name: "Run Tests (${{ matrix.label }})"
runs-on: "ubuntu-latest"
env:
# See https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby#matrix-of-gemfiles
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
strategy:
fail-fast: false
matrix:
include:
- label: Ruby 2.7
ruby_version: "2.7"
gemfile: Gemfile
- label: Ruby 3.0
ruby_version: "3.0"
gemfile: Gemfile
- label: Ruby 3.1
ruby_version: "3.1"
gemfile: Gemfile
- label: JRuby 9.3.4.0
ruby_version: "jruby-9.3.4.0"
gemfile: Gemfile-jruby
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: "Set up ${{ matrix.label }}"
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Run Minitest based tests
run: script/test
services:
redis:
image: redis
ports:
- 6379:6379
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions classifier-reborn-jruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = %w[README.markdown LICENSE]

s.add_runtime_dependency('jruby-stemmer-other', '~> 0.0.2')
s.add_runtime_dependency('matrix', '~> 0.4')

s.add_development_dependency('minitest')
s.add_development_dependency('minitest-reporters')
Expand Down
1 change: 1 addition & 0 deletions classifier-reborn.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = %w[README.markdown LICENSE]

s.add_runtime_dependency('fast-stemmer', '~> 1.0')
s.add_runtime_dependency('matrix', '~> 0.4')

s.add_development_dependency('minitest')
s.add_development_dependency('minitest-reporters')
Expand Down