Skip to content

Commit cac3e2b

Browse files
authored
Merge pull request #619 from RubyMoney/semmons99-patch-1
Create ruby.yml
2 parents 160682d + 5bdb308 commit cac3e2b

File tree

10 files changed

+68
-147
lines changed

10 files changed

+68
-147
lines changed

.github/workflows/ruby.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: Ruby
9+
10+
on:
11+
push:
12+
branches: [ master ]
13+
pull_request:
14+
branches: [ master ]
15+
16+
jobs:
17+
test:
18+
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
ruby-version: ['2.6', '2.7']
23+
mongodb-version: ['4.4']
24+
sqlite-version: ['3.0']
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Ruby
29+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
30+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
ruby-version: ${{ matrix.ruby-version }}
34+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
35+
36+
- name: Start MongoDB
37+
uses: supercharge/[email protected]
38+
with:
39+
mongodb-version: ${{ matrix.mongodb-version }}
40+
41+
- name: Run tests
42+
run: bundle exec rake

gemfiles/mongoid2.gemfile

Lines changed: 0 additions & 18 deletions
This file was deleted.

gemfiles/mongoid3.gemfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

gemfiles/mongoid4.gemfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

gemfiles/mongoid5.gemfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

gemfiles/rails3.gemfile

Lines changed: 0 additions & 16 deletions
This file was deleted.

gemfiles/rails4.gemfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

gemfiles/rails6.0.gemfile

Lines changed: 0 additions & 16 deletions
This file was deleted.

money-rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
3636
s.add_development_dependency "rspec-rails", "~> 3.0"
3737
s.add_development_dependency 'database_cleaner', '~> 1.6.1'
3838
s.add_development_dependency 'test-unit', '~> 3.0' if RUBY_VERSION >= '2.2'
39-
s.add_development_dependency 'bundler', '~> 1.17'
39+
s.add_development_dependency 'bundler'
4040

4141
if s.respond_to?(:metadata)
4242
s.metadata['changelog_uri'] = 'https://github.com/RubyMoney/money-rails/blob/master/CHANGELOG.md'

spec/dummy/db/schema.rb

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: UTF-8
21
# This file is auto-generated from the current state of the database. Instead
32
# of editing this file, please use the migrations feature of Active Record to
43
# incrementally modify your database, and then regenerate this schema definition.
@@ -11,50 +10,50 @@
1110
#
1211
# It's strongly recommended that you check this file into your version control system.
1312

14-
ActiveRecord::Schema.define(version: 20151026220420) do
13+
ActiveRecord::Schema.define(version: 2015_10_26_220420) do
1514

1615
create_table "dummy_products", force: :cascade do |t|
17-
t.string "currency"
18-
t.integer "price_cents"
16+
t.string "currency"
17+
t.integer "price_cents"
1918
t.datetime "created_at"
2019
t.datetime "updated_at"
2120
end
2221

2322
create_table "products", force: :cascade do |t|
24-
t.integer "price_cents"
25-
t.integer "discount"
23+
t.integer "price_cents"
24+
t.integer "discount"
2625
t.datetime "created_at"
2726
t.datetime "updated_at"
28-
t.integer "bonus_cents"
29-
t.integer "optional_price_cents"
30-
t.integer "sale_price_amount", default: 0, null: false
31-
t.string "sale_price_currency_code"
32-
t.integer "price_in_a_range_cents"
33-
t.integer "validates_method_amount_cents"
34-
t.integer "aliased_cents"
35-
t.integer "delivery_fee_cents"
36-
t.integer "restock_fee_cents"
37-
t.integer "reduced_price_cents"
38-
t.string "reduced_price_currency"
39-
t.integer "special_price_cents"
40-
t.integer "lambda_price_cents"
41-
t.string "skip_validation_price_cents"
27+
t.integer "bonus_cents"
28+
t.integer "optional_price_cents"
29+
t.integer "sale_price_amount", default: 0, null: false
30+
t.string "sale_price_currency_code"
31+
t.integer "price_in_a_range_cents"
32+
t.integer "validates_method_amount_cents"
33+
t.integer "aliased_cents"
34+
t.integer "delivery_fee_cents"
35+
t.integer "restock_fee_cents"
36+
t.integer "reduced_price_cents"
37+
t.string "reduced_price_currency"
38+
t.integer "special_price_cents"
39+
t.integer "lambda_price_cents"
40+
t.string "skip_validation_price_cents"
4241
end
4342

4443
create_table "services", force: :cascade do |t|
45-
t.integer "charge_cents"
46-
t.integer "discount_cents"
44+
t.integer "charge_cents"
45+
t.integer "discount_cents"
4746
t.datetime "created_at"
4847
t.datetime "updated_at"
4948
end
5049

5150
create_table "transactions", force: :cascade do |t|
52-
t.integer "amount_cents"
53-
t.integer "tax_cents"
54-
t.string "currency"
51+
t.integer "amount_cents"
52+
t.integer "tax_cents"
53+
t.string "currency"
5554
t.datetime "created_at"
5655
t.datetime "updated_at"
57-
t.integer "optional_amount_cents"
56+
t.integer "optional_amount_cents"
5857
end
5958

6059
end

0 commit comments

Comments
 (0)