File tree Expand file tree Collapse file tree 5 files changed +51
-22
lines changed Expand file tree Collapse file tree 5 files changed +51
-22
lines changed Original file line number Diff line number Diff line change 1+ name : Codecheck
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+ jobs :
10+ codecheck :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ - uses : ruby/setup-ruby@v1
15+ with :
16+ ruby-version : 2.7
17+ bundler-cache : true
18+ - run : bundle exec rubocop
Original file line number Diff line number Diff line change 1+ name : Tests
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+ jobs :
10+ test :
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ os : [ubuntu-latest]
15+ ruby : [2.5, 2.6, 2.7]
16+ runs-on : ${{ matrix.os }}
17+
18+ services :
19+ mongodb :
20+ image : mongo
21+ ports :
22+ - 27017:27017
23+
24+ steps :
25+ - uses : actions/checkout@v2
26+ - uses : ruby/setup-ruby@v1
27+ with :
28+ ruby-version : ${{ matrix.ruby }}
29+ bundler-cache : true
30+ - run : bundle exec rake
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# ActiveAdmin-Mongoid
22[ ![ Version ] [ rubygems_badge ]] [ rubygems ]
3- [ ![ Build Status] ( https://travis-ci.org/activeadmin/activeadmin-mongoid.svg?branch=master )] ( https://travis-ci.org/activeadmin/activeadmin-mongoid )
3+ ![ Tests] ( https://github.com/activeadmin/activeadmin-mongoid/actions/workflows/tests.yml/badge.svg )
4+ ![ Codecheck] ( https://github.com/activeadmin/activeadmin-mongoid/actions/workflows/codecheck.yml/badge.svg )
45
56## Updates
67
Original file line number Diff line number Diff line change 99# and thereby pushing ActiveAdmin::Generators::InstallGenerator to use our empty create_migrations method.
1010
1111Rails ::Generators ::NamedBase . class_eval do
12-
1312 def create_migrations
1413 end
1514
1615 def self . inherited ( klass )
1716 super
1817 if klass . name == "ActiveAdmin::Generators::InstallGenerator"
1918
20- klass . class_eval do
19+ klass . class_eval do
2120 def self . method_added ( method_name )
2221 super
2322 remove_method method_name if method_name == :create_migrations
@@ -26,4 +25,3 @@ def self.method_added(method_name)
2625 end
2726 end
2827end
29-
You can’t perform that action at this time.
0 commit comments