Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate TravisCI to GitHub Actions & Update Tested Ruby Versions #195

Merged
merged 2 commits into from
May 9, 2022
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