Skip to content

Commit

Permalink
ci(actions): Add GitHub actions
Browse files Browse the repository at this point in the history
- Remove .travis.yml
  • Loading branch information
cmckni3 committed Nov 25, 2024
1 parent eee9f44 commit d16c175
Show file tree
Hide file tree
Showing 7 changed files with 225 additions and 17 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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: CI

on:
push:
pull_request:
types: [opened, reopened]

jobs:
test:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby-version: ['2.3', '2.4']

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
bundler: "1"
- name: Run tests
run: bundle exec rake
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

8 changes: 6 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ source 'https://rubygems.org'

gem 'bundler', '>= 1.8.4'

gem 'bigdecimal', '1.3.5' # Rails 4
gem 'nokogiri', '1.8.2' # Rails 4
gem 'rails', '4.2.10'

# Declare your gem's dependencies in jasperserver-rails.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
Expand All @@ -13,11 +17,11 @@ gem 'jquery-rails'
gem 'protected_attributes'

group :development, :test do
gem 'thin'
# gem 'thin'
end

group :test do
gem 'sqlite3'
gem 'sqlite3', '~> 1.3.9'
gem 'vcr', '~> 4.0'
gem 'webmock', '~> 3.4'
end
155 changes: 155 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
PATH
remote: .
specs:
jasperserver-rails (1.0.1)
rails (~> 4.0)
rest-client (~> 2.0.2)

GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.10)
actionpack (= 4.2.10)
actionview (= 4.2.10)
activejob (= 4.2.10)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.10)
actionview (= 4.2.10)
activesupport (= 4.2.10)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.10)
activesupport (= 4.2.10)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (4.2.10)
activesupport (= 4.2.10)
globalid (>= 0.3.0)
activemodel (4.2.10)
activesupport (= 4.2.10)
builder (~> 3.1)
activerecord (4.2.10)
activemodel (= 4.2.10)
activesupport (= 4.2.10)
arel (~> 6.0)
activesupport (4.2.10)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
arel (6.0.4)
bigdecimal (1.3.5)
builder (3.2.3)
concurrent-ruby (1.0.5)
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.4)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
erubis (2.7.0)
globalid (0.4.1)
activesupport (>= 4.2.0)
hashdiff (0.3.7)
http-cookie (1.0.7)
domain_name (~> 0.5)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jquery-rails (4.3.3)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
logger (1.5.3)
loofah (2.2.2)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.0)
mini_mime (>= 0.1.1)
mime-types (3.6.0)
logger
mime-types-data (~> 3.2015)
mime-types-data (3.2024.1105)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.11.3)
netrc (0.11.0)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
protected_attributes (1.1.4)
activemodel (>= 4.0.1, < 5.0)
public_suffix (3.0.2)
rack (1.6.10)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.10)
actionmailer (= 4.2.10)
actionpack (= 4.2.10)
actionview (= 4.2.10)
activejob (= 4.2.10)
activemodel (= 4.2.10)
activerecord (= 4.2.10)
activesupport (= 4.2.10)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.10)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.9)
activesupport (>= 4.2.0, < 5.0)
nokogiri (~> 1.6)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (4.2.10)
actionpack (= 4.2.10)
activesupport (= 4.2.10)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.3.1)
rest-client (2.0.2)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
safe_yaml (1.0.4)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
thor (0.20.0)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
unf (0.2.0)
vcr (4.0.0)
webmock (3.4.1)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff

PLATFORMS
ruby

DEPENDENCIES
bigdecimal (= 1.3.5)
bundler (>= 1.8.4)
jasperserver-rails!
jquery-rails
nokogiri (= 1.8.2)
protected_attributes
rails (= 4.2.10)
sqlite3 (~> 1.3.9)
vcr (~> 4.0)
webmock (~> 3.4)

BUNDLED WITH
1.17.3
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# JasperserverRails

[![Gem Version](https://img.shields.io/gem/v/jasperserver-rails.svg)](https://rubygems.org/gems/jasperserver-rails)
[![Travis](https://img.shields.io/travis/cmckni3/ruby-jasperserver.svg)](https://travis-ci.org/cmckni3/rails-jasperserver)
[![CI](https://img.shields.io/github/actions/workflow/status/cmckni3/ruby-jasperserver/ci.yml)](https://github.com/cmckni3/ruby-jasperserver/actions/workflows/ci.yml)
[![Code Climate](https://api.codeclimate.com/v1/badges/9dfe8fd29537fc32faeb/maintainability)](https://codeclimate.com/github/cmckni3/ruby-jasperserver/maintainability)
[![License](https://img.shields.io/github/license/cmckni3/ruby-jasperserver.svg)](https://github.com/cmckni3/ruby-jasperserver/blob/master/MIT-LICENSE)

Expand Down
3 changes: 2 additions & 1 deletion jasperserver-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Gem::Specification.new do |s|
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md", "CHANGELOG.md"]
s.test_files = Dir["test/**/*"]

s.add_dependency 'rails', '> 3.2.0'
s.add_dependency 'rails', '~> 4.0'
# s.add_dependency 'rails', '~> 3.2.22'
s.add_dependency 'rest-client', '~> 2.0.2'
end
26 changes: 26 additions & 0 deletions rails4.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
source 'https://rubygems.org'

gem 'bundler', '>= 1.8.4'

gem 'bigdecimal', '1.3.5' # Rails 4
gem 'rails', '~> 4.2'

# Declare your gem's dependencies in jasperserver-rails.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
gemspec

# jquery-rails is used by the dummy application
gem 'jquery-rails'

gem 'protected_attributes'

group :development, :test do
# gem 'thin'
end

group :test do
gem 'sqlite3', '~> 1.3.9'
gem 'vcr', '~> 4.0'
gem 'webmock', '~> 3.4'
end

0 comments on commit d16c175

Please sign in to comment.