File tree 8 files changed +99
-12
lines changed
8 files changed +99
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Test External
2
+
3
+ on : [push, pull_request]
4
+
5
+ permissions :
6
+ contents : read
7
+
8
+ env :
9
+ CONSOLE_OUTPUT : XTerm
10
+
11
+ jobs :
12
+ test :
13
+ name : ${{matrix.ruby}} on ${{matrix.os}}
14
+ runs-on : ${{matrix.os}}-latest
15
+
16
+ strategy :
17
+ matrix :
18
+ os :
19
+ - ubuntu
20
+ - macos
21
+
22
+ ruby :
23
+ - " 3.1"
24
+ - " 3.2"
25
+ - " 3.3"
26
+
27
+ steps :
28
+ - uses : actions/checkout@v4
29
+ - uses : ruby/setup-ruby@v1
30
+ with :
31
+ ruby-version : ${{matrix.ruby}}
32
+ bundler-cache : true
33
+
34
+ - name : Run RuboCop
35
+ timeout-minutes : 10
36
+ run : bundle exec rubocop
Original file line number Diff line number Diff line change
1
+ AllCops :
2
+ DisabledByDefault : true
3
+
4
+ Layout/IndentationStyle :
5
+ Enabled : true
6
+ EnforcedStyle : tabs
7
+
8
+ Layout/InitialIndentation :
9
+ Enabled : true
10
+
11
+ Layout/IndentationWidth :
12
+ Enabled : true
13
+ Width : 1
14
+
15
+ Layout/IndentationConsistency :
16
+ Enabled : true
17
+ EnforcedStyle : normal
18
+
19
+ Layout/EndAlignment :
20
+ Enabled : true
21
+ EnforcedStyleAlignWith : start_of_line
22
+
23
+ Layout/BeginEndAlignment :
24
+ Enabled : true
25
+ EnforcedStyleAlignWith : start_of_line
26
+
27
+ Layout/ElseAlignment :
28
+ Enabled : true
29
+
30
+ Layout/DefEndAlignment :
31
+ Enabled : true
32
+
33
+ Layout/CaseIndentation :
34
+ Enabled : true
35
+
36
+ Layout/CommentIndentation :
37
+ Enabled : true
38
+
39
+ Layout/EmptyLinesAroundClassBody :
40
+ Enabled : true
41
+
42
+ Layout/EmptyLinesAroundModuleBody :
43
+ Enabled : true
44
+
45
+ Style/FrozenStringLiteralComment :
46
+ Enabled : true
Original file line number Diff line number Diff line change 7
7
TYPE = ENV . fetch ( "TYPE" , "pos" )
8
8
9
9
describe "sus" do
10
- ITERATIONS . times do |n |
11
- case TYPE
12
- when "pos" then
13
- it "pos #{ n } " do
14
- expect ( 1 ) . to be == 1
15
- end
16
- when "neg" then
17
- it "neg #{ n } " do
18
- expect ( 1 ) . to be == 2
19
- end
20
- end
21
- end
10
+ ITERATIONS . times do |n |
11
+ case TYPE
12
+ when "pos" then
13
+ it "pos #{ n } " do
14
+ expect ( 1 ) . to be == 1
15
+ end
16
+ when "neg" then
17
+ it "neg #{ n } " do
18
+ expect ( 1 ) . to be == 2
19
+ end
20
+ end
21
+ end
22
22
end
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
3
4
# require 'stackprof'
4
5
# StackProf.start(mode: :wall, interval: 10)
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
3
4
require 'json'
4
5
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
3
4
require_relative '../lib/sus/config'
4
5
config = Sus ::Config . load
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
3
4
require 'json'
4
5
Original file line number Diff line number Diff line change 17
17
group :test do
18
18
gem "covered"
19
19
gem "decode"
20
+ gem "rubocop"
20
21
21
22
gem "bake-test"
22
23
gem "bake-test-external"
You can’t perform that action at this time.
0 commit comments