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

Github action to bundle install and run test #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
29 changes: 29 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.0', '3.1']

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec rake
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ group :test do
gem 'coffee-rails'
gem 'sass-rails', '~> 6.0.0'
gem 'money', '6.13'
gem 'rspec-rails', '~> 2.10'
gem 'shoulda-matchers', '2.2.0'
gem 'rspec-rails', '~> 5.1.0'
gem 'shoulda-matchers', '5.1.0'
gem 'simplecov', :require => false
gem 'simplecov-rcov'
gem 'database_cleaner'
Expand Down
5 changes: 0 additions & 5 deletions Versionfile

This file was deleted.

7 changes: 3 additions & 4 deletions spree_affirm.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ Gem::Specification.new do |s|
s.version = SpreeAffirm::VERSION
s.summary = 'Affirm Spree Payment Gateway'
s.description = 'Affirm payment Gateway for Spree'
s.required_ruby_version = '>= 1.9.3'
s.required_ruby_version = '>= 3.0.3'

s.author = 'Affirm'
s.email = '[email protected]'
s.homepage = 'http://www.affirm.com'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_path = 'lib'
s.files = Dir['README.md', 'lib/**/*', 'spree_affirm.gemspec']
s.require_paths = ['lib']
s.requirements << 'none'

s.add_dependency 'spree_core', '>= 4.4.0'
Expand Down