Skip to content

Commit

Permalink
Github action to bundle install and run test
Browse files Browse the repository at this point in the history
  • Loading branch information
junedkazi committed Feb 9, 2022
1 parent 0a129f2 commit 8994b66
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 11 deletions.
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

0 comments on commit 8994b66

Please sign in to comment.