Skip to content

Commit

Permalink
Merge pull request #14 from mejuri-inc/develop
Browse files Browse the repository at this point in the history
Fix the use of bundler by GitHub Actions and adding gemspec to the Gemfile
  • Loading branch information
texpert authored Feb 3, 2021
2 parents ee880bd + fff55f7 commit 8278cb1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
with:
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
path: vendor/bundle
- uses: ruby/setup-ruby@master
id: ruby
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler: 1.17.3
bundler-cache: true
- name: Install postgres client
run: sudo apt-get install libpq-dev
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libcurl3-dev
gem install bundler -v 1.17.3
bundle install
- name: Create database
run: |
bundle exec rake db:create RAILS_ENV=test
Expand All @@ -48,9 +48,9 @@ jobs:
bundle exec rake db:schema:load RAILS_ENV=test
- name: Run tests
run: REPORT_COVERAGE=true bundle exec rspec
- name: Upload coverage results
- name: Upload coverage results
uses: actions/upload-artifact@master
if: always()
if: always()
with:
name: coverage
path: coverage
Expand All @@ -64,4 +64,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
runners: rubocop rails_best_practices flay
target: origin/develop
target: origin/develop
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

source 'https://rubygems.org'

gemspec

group :development, :test do
gem 'dotenv-rails', require: 'dotenv/rails-now'

Expand All @@ -19,7 +21,6 @@ group :development, :test do
gem 'byebug'
gem 'countries'
gem 'factory_bot_rails', '~> 4.0'
gem 'pg', '~> 0.21'
end

group :test do
Expand Down
8 changes: 3 additions & 5 deletions flowcommerce_spree.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ require 'flowcommerce_spree/version'
Gem::Specification.new do |s|
s.name = 'flowcommerce_spree'
s.version = FlowcommerceSpree::VERSION
s.authors = ['Aurel Branzeanu']
s.email = ['[email protected]']
s.authors = ['Aurel Branzeanu', 'Sebastian De Luca']
s.email = ['[email protected]', '[email protected]']
s.homepage = 'https://github.com/mejuri-inc/flowcommerce_spree'
s.summary = 'Integration of Spree with Flow API'
s.description = 'Integration of popular Rails/Spree store framework with e-commerce Flow API'
Expand All @@ -23,10 +23,8 @@ Gem::Specification.new do |s|
s.add_dependency 'colorize'
s.add_dependency 'concurrent-ruby', '~> 1.0', '>= 1.1.7'
s.add_dependency 'flowcommerce'
# s.add_dependency 'flowcommerce-activemerchant'
s.add_dependency 'flowcommerce-reference'
s.add_dependency 'oj'
s.add_dependency 'pg', '~> 0.21'
s.add_dependency 'spree_backend', '~> 2.3.0'

s.add_development_dependency 'sqlite3'
end

0 comments on commit 8278cb1

Please sign in to comment.