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

Add GitHub actions #21

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflow/test.yml
@@ -0,0 +1,32 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby

on:
push:
branches:
- master
pull_request:

jobs:
test:
name: Test with Ruby-${{ matrix.ruby }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -9,7 +9,7 @@

[![Gem Version](https://badge.fury.io/rb/sinja.svg)](https://badge.fury.io/rb/sinja)
[![Dependency Status](https://gemnasium.com/badges/github.com/mwpastore/sinja.svg)](https://gemnasium.com/github.com/mwpastore/sinja)
[![Build Status](https://travis-ci.org/mwpastore/sinja.svg?branch=master)](https://travis-ci.org/mwpastore/sinja)
[![Build Status](https://github.com/mwpastore/sinja/actions/workflows/test.yml/badge.svg)](https://github.com/mwpastore/sinja/actions)
[![{json:api} version](https://img.shields.io/badge/%7Bjson%3Aapi%7D%20version-1.0-lightgrey.svg)][7]
[![Chat in #sinja-rb on Gitter](https://badges.gitter.im/sinja-rb/Lobby.svg)](https://gitter.im/sinja-rb/Lobby)

Expand Down
3 changes: 0 additions & 3 deletions sinja.gemspec
Expand Up @@ -43,14 +43,11 @@ Gem::Specification.new do |spec|
spec.add_dependency 'sinatra', '~> 2.0'
spec.add_dependency 'sinatra-contrib', '~> 2.0'

spec.add_development_dependency 'bundler', '~> 1.11'
spec.add_development_dependency 'jdbc-sqlite3', '~> 3.8' if defined?(JRUBY_VERSION)
spec.add_development_dependency 'minitest', '~> 5.9'
spec.add_development_dependency 'minitest-hooks', '~> 1.4'
#spec.add_development_dependency 'munson', '~> 0.4' # in Gemfile
spec.add_development_dependency 'rack-test', '~> 0.7.0'
spec.add_development_dependency 'rake', '~> 12.0'
spec.add_development_dependency 'sequel', '>= 4.49', '< 6'
#spec.add_development_dependency 'sinja-sequel', '~> 0.1' # in Gemfile
spec.add_development_dependency 'sqlite3', '~> 1.3' if !defined?(JRUBY_VERSION)
end