legitbot 1.12.0 → 1.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/autocorrect.yml +3 -18
- data/.github/workflows/pr.yml +7 -30
- data/.github/workflows/release.yml +30 -0
- data/lib/legitbot/duckduckgo.rb +12 -0
- data/lib/legitbot/openai.rb +80 -0
- data/lib/legitbot/version.rb +1 -1
- data/test/legitbot/validators/domains_test.rb +2 -0
- data/test/legitbot/validators/ip_ranges_test.rb +5 -0
- metadata +3 -3
- data/.github/workflows/codecov.yml +0 -41
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd493bb820b4e1075d81fe65b994148647e353333f137a4aba346089c712ca0d
|
|
4
|
+
data.tar.gz: 21711fdf1f6045ffbd0404b4e9b9e27148433170c3770d3afda4489b5d0337f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdf2002de0fd6f84a90533872bdafe960ac8d8595835e6f347c26e6e0d966a0797bf5ebdca3d393d3cddfcb771335ab1116a29557948bf8dc79d6bea50667310
|
|
7
|
+
data.tar.gz: 1fbfb29ec0669f5aced846fb137068aa44cbf6689e3670328906c719798208f6d4efa66c6e01d6f18076bc96887c36ed1686c156c37e985bf2b7ec66a74b692f
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: Autocorrect
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
schedule:
|
|
@@ -10,27 +10,12 @@ jobs:
|
|
|
10
10
|
lint:
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
|
|
13
|
-
strategy:
|
|
14
|
-
matrix:
|
|
15
|
-
ruby: [3.2]
|
|
16
|
-
|
|
17
13
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@v5
|
|
19
15
|
- name: Set up Ruby
|
|
20
16
|
uses: ruby/setup-ruby@v1
|
|
21
17
|
with:
|
|
22
|
-
|
|
23
|
-
- name: Cache dependencies
|
|
24
|
-
uses: actions/cache@v3
|
|
25
|
-
with:
|
|
26
|
-
path: vendor/bundle
|
|
27
|
-
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
28
|
-
restore-keys: |
|
|
29
|
-
${{ runner.os }}-${{ matrix.ruby }}-gems-
|
|
30
|
-
- name: Install dependencies
|
|
31
|
-
run: |
|
|
32
|
-
bundle config path vendor/bundle
|
|
33
|
-
bundle install --jobs 4 --retry 3
|
|
18
|
+
bundler-cache: true
|
|
34
19
|
- name: Run tests
|
|
35
20
|
run: bundle exec rake test
|
|
36
21
|
- name: Run linter
|
data/.github/workflows/pr.yml
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: PR Checks
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
pull_request:
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
7
|
test:
|
|
8
|
+
name: Tests
|
|
8
9
|
runs-on: ubuntu-latest
|
|
9
10
|
|
|
10
11
|
strategy:
|
|
@@ -13,49 +14,25 @@ jobs:
|
|
|
13
14
|
ruby: [jruby, 3.1, 3.2, 3.3, 3.4]
|
|
14
15
|
|
|
15
16
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
17
|
+
- uses: actions/checkout@v5
|
|
17
18
|
- name: Set up Ruby
|
|
18
19
|
uses: ruby/setup-ruby@v1
|
|
19
20
|
with:
|
|
20
21
|
ruby-version: ${{ matrix.ruby }}
|
|
21
|
-
|
|
22
|
-
uses: actions/cache@v3
|
|
23
|
-
with:
|
|
24
|
-
path: vendor/bundle
|
|
25
|
-
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
26
|
-
restore-keys: |
|
|
27
|
-
${{ runner.os }}-${{ matrix.ruby }}-gems-
|
|
28
|
-
- name: Install dependencies
|
|
29
|
-
run: |
|
|
30
|
-
bundle config path vendor/bundle
|
|
31
|
-
bundle install --jobs 4 --retry 3
|
|
22
|
+
bundler-cache: true
|
|
32
23
|
- name: Run tests
|
|
33
24
|
run: bundle exec rake test
|
|
34
25
|
|
|
35
26
|
lint:
|
|
27
|
+
name: Lint
|
|
36
28
|
needs: test
|
|
37
29
|
runs-on: ubuntu-latest
|
|
38
30
|
|
|
39
|
-
strategy:
|
|
40
|
-
matrix:
|
|
41
|
-
ruby: [3.1]
|
|
42
|
-
|
|
43
31
|
steps:
|
|
44
|
-
- uses: actions/checkout@
|
|
32
|
+
- uses: actions/checkout@v5
|
|
45
33
|
- name: Set up Ruby
|
|
46
34
|
uses: ruby/setup-ruby@v1
|
|
47
35
|
with:
|
|
48
|
-
|
|
49
|
-
- name: Cache dependencies
|
|
50
|
-
uses: actions/cache@v3
|
|
51
|
-
with:
|
|
52
|
-
path: vendor/bundle
|
|
53
|
-
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
54
|
-
restore-keys: |
|
|
55
|
-
${{ runner.os }}-${{ matrix.ruby }}-gems-
|
|
56
|
-
- name: Install dependencies
|
|
57
|
-
run: |
|
|
58
|
-
bundle config path vendor/bundle
|
|
59
|
-
bundle install --jobs 4 --retry 3
|
|
36
|
+
bundler-cache: true
|
|
60
37
|
- name: Run linter
|
|
61
38
|
run: bundle exec rubocop
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
paths:
|
|
8
|
+
- "lib/legitbot/version.rb"
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
release:
|
|
12
|
+
name: Publish to Rubygems
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
id-token: write
|
|
17
|
+
contents: write
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v5
|
|
21
|
+
with:
|
|
22
|
+
persist-credentials: false
|
|
23
|
+
- name: Set up Ruby
|
|
24
|
+
uses: ruby/setup-ruby@v1
|
|
25
|
+
with:
|
|
26
|
+
bundler-cache: true
|
|
27
|
+
- name: Run tests
|
|
28
|
+
run: bundle exec rake test
|
|
29
|
+
- name: Publish
|
|
30
|
+
uses: rubygems/release-gem@v1
|
data/lib/legitbot/duckduckgo.rb
CHANGED
|
@@ -10,12 +10,15 @@ module Legitbot # :nodoc:
|
|
|
10
10
|
4.156.136.79
|
|
11
11
|
4.182.131.108
|
|
12
12
|
4.195.133.120
|
|
13
|
+
4.207.220.92
|
|
13
14
|
4.209.224.56
|
|
14
15
|
4.213.46.14
|
|
15
16
|
4.228.76.163
|
|
16
17
|
13.89.106.77
|
|
17
18
|
20.3.1.178
|
|
19
|
+
20.8.252.26
|
|
18
20
|
20.12.141.99
|
|
21
|
+
20.13.44.19
|
|
19
22
|
20.40.133.240
|
|
20
23
|
20.43.150.85
|
|
21
24
|
20.43.150.93
|
|
@@ -47,9 +50,11 @@ module Legitbot # :nodoc:
|
|
|
47
50
|
20.53.91.2
|
|
48
51
|
20.53.92.211
|
|
49
52
|
20.53.134.160
|
|
53
|
+
20.54.224.39
|
|
50
54
|
20.56.197.58
|
|
51
55
|
20.56.197.63
|
|
52
56
|
20.61.34.40
|
|
57
|
+
20.61.142.192
|
|
53
58
|
20.62.224.44
|
|
54
59
|
20.71.12.143
|
|
55
60
|
20.72.242.93
|
|
@@ -64,6 +69,7 @@ module Legitbot # :nodoc:
|
|
|
64
69
|
20.99.255.235
|
|
65
70
|
20.113.3.121
|
|
66
71
|
20.113.14.159
|
|
72
|
+
20.166.171.150
|
|
67
73
|
20.185.79.15
|
|
68
74
|
20.185.79.47
|
|
69
75
|
20.191.44.16
|
|
@@ -123,6 +129,7 @@ module Legitbot # :nodoc:
|
|
|
123
129
|
40.119.232.215
|
|
124
130
|
40.119.232.218
|
|
125
131
|
40.119.232.251
|
|
132
|
+
40.127.154.196
|
|
126
133
|
51.8.71.117
|
|
127
134
|
51.8.253.152
|
|
128
135
|
51.104.146.225
|
|
@@ -233,13 +240,17 @@ module Legitbot # :nodoc:
|
|
|
233
240
|
52.224.21.61
|
|
234
241
|
52.242.224.168
|
|
235
242
|
57.152.72.128
|
|
243
|
+
68.219.152.220
|
|
236
244
|
104.43.54.127
|
|
237
245
|
104.43.55.116
|
|
238
246
|
104.43.55.117
|
|
239
247
|
104.43.55.166
|
|
240
248
|
104.43.55.167
|
|
241
249
|
108.141.83.74
|
|
250
|
+
130.107.228.224
|
|
251
|
+
132.164.209.198
|
|
242
252
|
172.169.17.165
|
|
253
|
+
172.199.55.212
|
|
243
254
|
191.233.3.197
|
|
244
255
|
191.233.3.202
|
|
245
256
|
191.234.216.4
|
|
@@ -489,6 +500,7 @@ module Legitbot # :nodoc:
|
|
|
489
500
|
104.43.55.166
|
|
490
501
|
104.43.55.167
|
|
491
502
|
108.141.83.74
|
|
503
|
+
130.107.228.224
|
|
492
504
|
172.169.17.165
|
|
493
505
|
191.233.3.197
|
|
494
506
|
191.233.3.202
|
data/lib/legitbot/openai.rb
CHANGED
|
@@ -11,7 +11,14 @@ module Legitbot # :nodoc:
|
|
|
11
11
|
20.171.206.0/24
|
|
12
12
|
20.171.207.0/24
|
|
13
13
|
52.230.152.0/24
|
|
14
|
+
74.7.227.0/25
|
|
15
|
+
74.7.227.128/25
|
|
16
|
+
74.7.228.0/25
|
|
17
|
+
74.7.230.0/25
|
|
18
|
+
132.196.86.0/24
|
|
19
|
+
172.182.202.0/25
|
|
14
20
|
172.182.204.0/24
|
|
21
|
+
172.182.207.0/25
|
|
15
22
|
172.182.214.0/24
|
|
16
23
|
172.182.215.0/24
|
|
17
24
|
]
|
|
@@ -27,46 +34,86 @@ module Legitbot # :nodoc:
|
|
|
27
34
|
4.151.119.48/28
|
|
28
35
|
4.151.241.240/28
|
|
29
36
|
4.196.118.112/28
|
|
37
|
+
4.196.198.80/28
|
|
38
|
+
4.197.19.176/28
|
|
30
39
|
4.197.22.112/28
|
|
31
40
|
4.197.115.112/28
|
|
32
41
|
4.205.128.176/28
|
|
42
|
+
4.234.83.96/28
|
|
43
|
+
12.129.184.64/26
|
|
33
44
|
13.65.138.96/28
|
|
34
45
|
13.65.138.112/28
|
|
46
|
+
13.70.107.160/28
|
|
47
|
+
13.71.2.208/28
|
|
48
|
+
13.76.32.208/28
|
|
35
49
|
13.76.116.80/28
|
|
36
50
|
13.83.167.128/28
|
|
37
51
|
13.83.237.176/28
|
|
52
|
+
20.0.53.96/28
|
|
53
|
+
20.27.94.128/28
|
|
54
|
+
20.45.178.144/28
|
|
38
55
|
20.55.229.144/28
|
|
39
56
|
20.63.221.64/28
|
|
57
|
+
20.77.178.240/28
|
|
40
58
|
20.90.7.144/28
|
|
41
59
|
20.97.189.96/28
|
|
42
60
|
20.102.212.144/28
|
|
43
61
|
20.117.22.224/28
|
|
44
62
|
20.161.75.208/28
|
|
45
63
|
20.193.50.32/28
|
|
64
|
+
20.194.0.208/28
|
|
65
|
+
20.194.1.0/28
|
|
66
|
+
20.194.157.176/28
|
|
67
|
+
20.198.67.96/28
|
|
68
|
+
20.204.24.240/28
|
|
69
|
+
20.210.154.128/28
|
|
70
|
+
20.210.174.208/28
|
|
46
71
|
20.215.188.192/28
|
|
47
72
|
20.215.214.16/28
|
|
48
73
|
20.228.106.176/28
|
|
74
|
+
20.235.75.208/28
|
|
49
75
|
20.235.87.224/28
|
|
76
|
+
20.241.32.36/32
|
|
50
77
|
20.249.63.208/28
|
|
78
|
+
23.97.109.224/28
|
|
79
|
+
23.98.142.176/28
|
|
51
80
|
23.98.179.16/28
|
|
52
81
|
23.98.186.64/28
|
|
53
82
|
23.98.186.96/28
|
|
54
83
|
23.98.186.176/28
|
|
55
84
|
23.98.186.192/28
|
|
85
|
+
23.102.140.144/28
|
|
86
|
+
23.102.141.32/28
|
|
87
|
+
40.75.14.224/28
|
|
56
88
|
40.84.181.32/28
|
|
57
89
|
40.84.221.208/28
|
|
58
90
|
40.84.221.224/28
|
|
59
91
|
40.116.73.208/28
|
|
92
|
+
40.122.118.93/32
|
|
93
|
+
40.122.118.119/32
|
|
94
|
+
40.122.118.202/32
|
|
95
|
+
48.218.181.198/32
|
|
96
|
+
50.145.17.210/32
|
|
97
|
+
50.235.235.77/32
|
|
98
|
+
50.235.235.78/32
|
|
60
99
|
51.8.155.48/28
|
|
61
100
|
51.8.155.64/28
|
|
101
|
+
51.8.155.80/28
|
|
62
102
|
51.8.155.112/28
|
|
103
|
+
52.119.123.85/32
|
|
63
104
|
52.148.129.32/28
|
|
105
|
+
52.154.22.48/28
|
|
64
106
|
52.156.77.144/28
|
|
65
107
|
52.159.227.32/28
|
|
66
108
|
52.159.249.96/28
|
|
109
|
+
52.173.123.0/28
|
|
110
|
+
52.173.219.96/28
|
|
111
|
+
52.173.219.112/28
|
|
67
112
|
52.173.234.16/28
|
|
68
113
|
52.173.234.80/28
|
|
114
|
+
52.173.235.80/28
|
|
69
115
|
52.176.139.176/28
|
|
116
|
+
52.187.246.128/28
|
|
70
117
|
52.190.137.16/28
|
|
71
118
|
52.190.137.144/28
|
|
72
119
|
52.190.139.48/28
|
|
@@ -78,6 +125,7 @@ module Legitbot # :nodoc:
|
|
|
78
125
|
52.236.94.144/28
|
|
79
126
|
52.242.132.224/28
|
|
80
127
|
52.242.132.240/28
|
|
128
|
+
52.242.245.208/28
|
|
81
129
|
52.252.113.240/28
|
|
82
130
|
52.255.109.80/28
|
|
83
131
|
52.255.109.96/28
|
|
@@ -93,7 +141,10 @@ module Legitbot # :nodoc:
|
|
|
93
141
|
57.154.174.112/28
|
|
94
142
|
57.154.175.0/28
|
|
95
143
|
57.154.187.32/28
|
|
144
|
+
64.124.21.196/32
|
|
145
|
+
66.193.99.66/32
|
|
96
146
|
68.154.28.96/28
|
|
147
|
+
68.218.30.112/28
|
|
97
148
|
68.220.57.64/28
|
|
98
149
|
68.221.67.160/28
|
|
99
150
|
68.221.67.192/28
|
|
@@ -108,6 +159,7 @@ module Legitbot # :nodoc:
|
|
|
108
159
|
74.249.86.176/28
|
|
109
160
|
104.210.139.192/28
|
|
110
161
|
104.210.139.224/28
|
|
162
|
+
130.33.24.99/32
|
|
111
163
|
132.196.82.48/28
|
|
112
164
|
135.119.134.128/28
|
|
113
165
|
135.119.134.192/28
|
|
@@ -115,17 +167,37 @@ module Legitbot # :nodoc:
|
|
|
115
167
|
135.237.133.48/28
|
|
116
168
|
135.237.133.112/28
|
|
117
169
|
137.135.191.176/28
|
|
170
|
+
138.91.30.48/28
|
|
171
|
+
138.91.46.96/28
|
|
172
|
+
148.76.185.195/32
|
|
173
|
+
148.76.185.196/32
|
|
174
|
+
148.76.185.197/32
|
|
118
175
|
172.178.140.144/28
|
|
119
176
|
172.178.141.112/28
|
|
120
177
|
172.178.141.128/28
|
|
121
178
|
172.183.143.224/28
|
|
122
179
|
172.183.222.128/28
|
|
180
|
+
172.204.16.64/28
|
|
123
181
|
172.212.159.64/28
|
|
124
182
|
172.213.11.144/28
|
|
125
183
|
172.213.12.112/28
|
|
126
184
|
172.213.21.16/28
|
|
127
185
|
172.213.21.112/28
|
|
128
186
|
172.213.21.144/28
|
|
187
|
+
191.233.194.32/28
|
|
188
|
+
191.233.196.112/28
|
|
189
|
+
191.234.167.128/28
|
|
190
|
+
191.235.66.16/28
|
|
191
|
+
191.235.98.144/28
|
|
192
|
+
191.235.99.80/28
|
|
193
|
+
191.239.245.16/28
|
|
194
|
+
208.52.97.119/32
|
|
195
|
+
208.80.35.35/32
|
|
196
|
+
208.80.35.36/32
|
|
197
|
+
208.80.35.37/32
|
|
198
|
+
208.80.35.40/32
|
|
199
|
+
209.249.37.128/26
|
|
200
|
+
216.64.170.234/32
|
|
129
201
|
]
|
|
130
202
|
end
|
|
131
203
|
# rubocop:enable Metrics/ClassLength
|
|
@@ -135,15 +207,23 @@ module Legitbot # :nodoc:
|
|
|
135
207
|
# @fetch:url https://openai.com/searchbot.json
|
|
136
208
|
# @fetch:jsonpath $.prefixes[*].ipv4Prefix
|
|
137
209
|
ip_ranges %w[
|
|
210
|
+
4.227.36.0/25
|
|
138
211
|
20.14.99.96/28
|
|
139
212
|
20.25.151.224/28
|
|
140
213
|
20.42.10.176/28
|
|
141
214
|
20.168.18.32/28
|
|
142
215
|
20.169.6.224/28
|
|
143
216
|
20.169.7.48/28
|
|
217
|
+
20.169.77.0/25
|
|
144
218
|
20.171.53.224/28
|
|
145
219
|
20.171.123.64/28
|
|
220
|
+
40.67.175.0/25
|
|
146
221
|
51.8.102.0/24
|
|
222
|
+
74.7.228.0/25
|
|
223
|
+
74.7.228.128/25
|
|
224
|
+
74.7.229.0/25
|
|
225
|
+
74.7.229.128/25
|
|
226
|
+
74.7.230.0/25
|
|
147
227
|
104.210.140.128/28
|
|
148
228
|
135.234.64.0/24
|
|
149
229
|
172.182.193.80/28
|
data/lib/legitbot/version.rb
CHANGED
|
@@ -11,6 +11,7 @@ module Legitbot
|
|
|
11
11
|
|
|
12
12
|
class DomainMatch
|
|
13
13
|
include Domains
|
|
14
|
+
|
|
14
15
|
domains 'search.msn.com', reverse: false
|
|
15
16
|
|
|
16
17
|
@resolver = Minitest::Mock.new
|
|
@@ -27,6 +28,7 @@ module Legitbot
|
|
|
27
28
|
|
|
28
29
|
class ReverseMatch
|
|
29
30
|
include Domains
|
|
31
|
+
|
|
30
32
|
domains 'search.msn.com'
|
|
31
33
|
end
|
|
32
34
|
|
|
@@ -12,16 +12,19 @@ module Legitbot
|
|
|
12
12
|
|
|
13
13
|
class ArrayRanges
|
|
14
14
|
include IpRanges
|
|
15
|
+
|
|
15
16
|
ip_ranges '66.220.144.0/21', '2a03:2880:f234::/48'
|
|
16
17
|
end
|
|
17
18
|
|
|
18
19
|
class FlattenRanges
|
|
19
20
|
include IpRanges
|
|
21
|
+
|
|
20
22
|
ip_ranges %w[66.220.144.0/21 2a03:2880:f234::/48]
|
|
21
23
|
end
|
|
22
24
|
|
|
23
25
|
class EmptyRanges
|
|
24
26
|
include IpRanges
|
|
27
|
+
|
|
25
28
|
ip_ranges
|
|
26
29
|
|
|
27
30
|
def initialize(ip)
|
|
@@ -49,11 +52,13 @@ module Legitbot
|
|
|
49
52
|
|
|
50
53
|
class NilRanges
|
|
51
54
|
include IpRanges
|
|
55
|
+
|
|
52
56
|
ip_ranges { nil }
|
|
53
57
|
end
|
|
54
58
|
|
|
55
59
|
class Ipv4Ranges
|
|
56
60
|
include IpRanges
|
|
61
|
+
|
|
57
62
|
ip_ranges { ['66.220.144.0/21'] }
|
|
58
63
|
end
|
|
59
64
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: legitbot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.12.
|
|
4
|
+
version: 1.12.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Azarov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fast_interval_tree
|
|
@@ -59,8 +59,8 @@ extra_rdoc_files: []
|
|
|
59
59
|
files:
|
|
60
60
|
- ".editorconfig"
|
|
61
61
|
- ".github/workflows/autocorrect.yml"
|
|
62
|
-
- ".github/workflows/codecov.yml"
|
|
63
62
|
- ".github/workflows/pr.yml"
|
|
63
|
+
- ".github/workflows/release.yml"
|
|
64
64
|
- ".gitignore"
|
|
65
65
|
- ".rubocop.yml"
|
|
66
66
|
- ".ruby-version"
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
name: autocorrect
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
|
|
6
|
-
push:
|
|
7
|
-
branches:
|
|
8
|
-
- "master"
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
codecov:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
strategy:
|
|
15
|
-
matrix:
|
|
16
|
-
ruby: [3.1]
|
|
17
|
-
|
|
18
|
-
steps:
|
|
19
|
-
- uses: actions/checkout@v3
|
|
20
|
-
- name: Set up Ruby
|
|
21
|
-
uses: ruby/setup-ruby@v1
|
|
22
|
-
with:
|
|
23
|
-
ruby-version: ${{ matrix.ruby }}
|
|
24
|
-
- name: Cache dependencies
|
|
25
|
-
uses: actions/cache@v3
|
|
26
|
-
with:
|
|
27
|
-
path: vendor/bundle
|
|
28
|
-
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
29
|
-
restore-keys: |
|
|
30
|
-
${{ runner.os }}-${{ matrix.ruby }}-gems-
|
|
31
|
-
- name: Install dependencies
|
|
32
|
-
run: |
|
|
33
|
-
bundle config path vendor/bundle
|
|
34
|
-
bundle install --jobs 4 --retry 3
|
|
35
|
-
- name: Run tests
|
|
36
|
-
run: bundle exec rake test
|
|
37
|
-
- name: Upload coverage
|
|
38
|
-
uses: codecov/codecov-action@v4
|
|
39
|
-
with:
|
|
40
|
-
files: coverage/coverage.xml
|
|
41
|
-
token: ${{ secrets.CODECOV_TOKEN }}
|