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 1
1
# ActiveAdmin-Mongoid
2
2
[ ![ 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 )
4
5
5
6
## Updates
6
7
Original file line number Diff line number Diff line change 9
9
# and thereby pushing ActiveAdmin::Generators::InstallGenerator to use our empty create_migrations method.
10
10
11
11
Rails ::Generators ::NamedBase . class_eval do
12
-
13
12
def create_migrations
14
13
end
15
14
16
15
def self . inherited ( klass )
17
16
super
18
17
if klass . name == "ActiveAdmin::Generators::InstallGenerator"
19
18
20
- klass . class_eval do
19
+ klass . class_eval do
21
20
def self . method_added ( method_name )
22
21
super
23
22
remove_method method_name if method_name == :create_migrations
@@ -26,4 +25,3 @@ def self.method_added(method_name)
26
25
end
27
26
end
28
27
end
29
-
You can’t perform that action at this time.
0 commit comments