Skip to content

Commit

Permalink
Merge pull request #619 from RubyMoney/semmons99-patch-1
Browse files Browse the repository at this point in the history
Create ruby.yml
  • Loading branch information
semmons99 authored Jan 17, 2021
2 parents 160682d + 5bdb308 commit cac3e2b
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 147 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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: ['2.6', '2.7']
mongodb-version: ['4.4']
sqlite-version: ['3.0']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: ${{ matrix.mongodb-version }}

- name: Run tests
run: bundle exec rake
18 changes: 0 additions & 18 deletions gemfiles/mongoid2.gemfile

This file was deleted.

17 changes: 0 additions & 17 deletions gemfiles/mongoid3.gemfile

This file was deleted.

21 changes: 0 additions & 21 deletions gemfiles/mongoid4.gemfile

This file was deleted.

17 changes: 0 additions & 17 deletions gemfiles/mongoid5.gemfile

This file was deleted.

16 changes: 0 additions & 16 deletions gemfiles/rails3.gemfile

This file was deleted.

15 changes: 0 additions & 15 deletions gemfiles/rails4.gemfile

This file was deleted.

16 changes: 0 additions & 16 deletions gemfiles/rails6.0.gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion money-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec-rails", "~> 3.0"
s.add_development_dependency 'database_cleaner', '~> 1.6.1'
s.add_development_dependency 'test-unit', '~> 3.0' if RUBY_VERSION >= '2.2'
s.add_development_dependency 'bundler', '~> 1.17'
s.add_development_dependency 'bundler'

if s.respond_to?(:metadata)
s.metadata['changelog_uri'] = 'https://github.com/RubyMoney/money-rails/blob/master/CHANGELOG.md'
Expand Down
51 changes: 25 additions & 26 deletions spec/dummy/db/schema.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
Expand All @@ -11,50 +10,50 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20151026220420) do
ActiveRecord::Schema.define(version: 2015_10_26_220420) do

create_table "dummy_products", force: :cascade do |t|
t.string "currency"
t.integer "price_cents"
t.string "currency"
t.integer "price_cents"
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "products", force: :cascade do |t|
t.integer "price_cents"
t.integer "discount"
t.integer "price_cents"
t.integer "discount"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "bonus_cents"
t.integer "optional_price_cents"
t.integer "sale_price_amount", default: 0, null: false
t.string "sale_price_currency_code"
t.integer "price_in_a_range_cents"
t.integer "validates_method_amount_cents"
t.integer "aliased_cents"
t.integer "delivery_fee_cents"
t.integer "restock_fee_cents"
t.integer "reduced_price_cents"
t.string "reduced_price_currency"
t.integer "special_price_cents"
t.integer "lambda_price_cents"
t.string "skip_validation_price_cents"
t.integer "bonus_cents"
t.integer "optional_price_cents"
t.integer "sale_price_amount", default: 0, null: false
t.string "sale_price_currency_code"
t.integer "price_in_a_range_cents"
t.integer "validates_method_amount_cents"
t.integer "aliased_cents"
t.integer "delivery_fee_cents"
t.integer "restock_fee_cents"
t.integer "reduced_price_cents"
t.string "reduced_price_currency"
t.integer "special_price_cents"
t.integer "lambda_price_cents"
t.string "skip_validation_price_cents"
end

create_table "services", force: :cascade do |t|
t.integer "charge_cents"
t.integer "discount_cents"
t.integer "charge_cents"
t.integer "discount_cents"
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "transactions", force: :cascade do |t|
t.integer "amount_cents"
t.integer "tax_cents"
t.string "currency"
t.integer "amount_cents"
t.integer "tax_cents"
t.string "currency"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "optional_amount_cents"
t.integer "optional_amount_cents"
end

end

0 comments on commit cac3e2b

Please sign in to comment.