Skip to content

Commit e8d0b42

Browse files
committed
Update policies and add funding
- Add funding options - Add Tidelift security policy. - Update to latest Contributor Covenant for CoC. - Clean up .gitignore and .hoerc. - Clean up workflow
1 parent be2a75c commit e8d0b42

File tree

6 files changed

+251
-98
lines changed

6 files changed

+251
-98
lines changed

.github/FUNDING.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# These are supported funding model platforms
2+
3+
github: halostatue
4+
buy_me_a_coffee: halostatue
5+
ko_fi: halostatue
6+
tidelift: rubygems/mime-types

.github/workflows/ci.yml

+118-29
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Ruby CI
22

33
on:
44
pull_request:
@@ -7,53 +7,117 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
test:
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
16+
17+
- uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: '3.3'
20+
rubygems: latest
21+
bundler: 2
22+
bundler-cache: true
23+
24+
- run: bundle exec standardrb
25+
26+
required-ubuntu:
1127
name: Ruby ${{ matrix.ruby }} - ${{ matrix.os }}
28+
1229
strategy:
1330
fail-fast: false
1431
matrix:
1532
os:
16-
- macos-latest
1733
- ubuntu-20.04
34+
- ubuntu-22.04
35+
- ubuntu-24.04
1836
ruby:
1937
- '2.6'
2038
- '2.7'
21-
- '3.0'
2239
- '3.1'
2340
- '3.2'
2441
- '3.3'
25-
- head
2642
- jruby
27-
- jruby-head
2843
- truffleruby
2944
include:
30-
- ruby: head
45+
- ruby: jruby
46+
os: ubuntu-22.04
3147
continue-on-error: true
32-
- ruby: jruby-head
48+
- ruby: truffleruby
49+
os: ubuntu-22.04
3350
continue-on-error: true
34-
- os: windows-latest
35-
ruby: mingw
36-
- os: windows-latest
37-
ruby: mswin
38-
- os: windows-latest
39-
ruby: jruby
40-
continue-on-error: true
41-
- os: ubuntu-22.04
42-
ruby: head
43-
continue-on-error: true
44-
- os: ubuntu-22.04
45-
ruby: '3.1'
46-
- os: ubuntu-22.04
47-
ruby: '3.2'
48-
- os: ubuntu-22.04
49-
ruby: '3.3'
50-
standardrb: true
5151

5252
runs-on: ${{ matrix.os }}
53-
continue-on-error: ${{ matrix.continue-on-error || false }}
53+
continue-on-error: ${{ matrix.continue-on-error }}
54+
55+
steps:
56+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
57+
- uses: ruby/setup-ruby@v1
58+
with:
59+
ruby-version: ${{ matrix.ruby }}
60+
rubygems: latest
61+
bundler: 2
62+
bundler-cache: true
63+
64+
- run: bundle exec ruby -S rake test --trace
65+
66+
required-macos:
67+
name: Ruby ${{ matrix.ruby }} - ${{ matrix.os }}
68+
69+
strategy:
70+
fail-fast: false
71+
matrix:
72+
os:
73+
- macos-12
74+
- macos-13
75+
- macos-14
76+
ruby:
77+
- '2.6'
78+
- '2.7'
79+
- '3.1'
80+
- '3.2'
81+
- '3.3'
82+
83+
runs-on: ${{ matrix.os }}
84+
85+
steps:
86+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
87+
- uses: ruby/setup-ruby@v1
88+
with:
89+
ruby-version: ${{ matrix.ruby }}
90+
rubygems: latest
91+
bundler: 2
92+
bundler-cache: true
93+
94+
- run: bundle exec ruby -S rake test --trace
95+
96+
required-windows:
97+
name: Ruby ${{ matrix.ruby }} - ${{ matrix.os }}
98+
strategy:
99+
fail-fast: false
100+
matrix:
101+
os:
102+
- windows-2019
103+
- windows-2022
104+
ruby:
105+
- '2.6'
106+
- '2.7'
107+
- '3.0'
108+
- '3.1'
109+
- '3.2'
110+
- '3.3'
111+
- mswin
112+
- ucrt
113+
include:
114+
- ruby: mingw
115+
os: windows-2022
116+
117+
runs-on: ${{ matrix.os }}
54118

55119
steps:
56-
- uses: actions/checkout@v4
120+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
57121
- uses: ruby/setup-ruby@v1
58122
with:
59123
ruby-version: ${{ matrix.ruby }}
@@ -63,5 +127,30 @@ jobs:
63127

64128
- run: bundle exec ruby -S rake test --trace
65129

66-
- if: matrix.standardrb == true
67-
run: bundle exec standardrb
130+
ruby-head-optional:
131+
name: Ruby ${{ matrix.ruby }} - ${{ matrix.os }} (optional)
132+
133+
strategy:
134+
fail-fast: false
135+
136+
matrix:
137+
ruby:
138+
- head
139+
os:
140+
- macos-latest
141+
- ubuntu-latest
142+
- windows-latest
143+
144+
continue-on-error: true
145+
runs-on: ${{ matrix.os }}
146+
147+
steps:
148+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
149+
- uses: ruby/setup-ruby@v1
150+
with:
151+
ruby-version: ${{ matrix.ruby }}
152+
rubygems: latest
153+
bundler: 2
154+
bundler-cache: true
155+
156+
- run: bundle exec ruby -S rake test --trace

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
.rake_tasks~
44
.source_index
55
Gemfile.lock
6-
coverage.info
7-
coverage/
86
doc/
97
html/
108
pkg/

.hoerc

+21-23
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ exclude: !ruby/regexp '/
66
)$
77
|
88
\.(?:
9-
bundle|
10-
git|
11-
github|
12-
hg|
13-
idea|
14-
svn|
15-
vagrant
16-
)\/
9+
bundle |
10+
git |
11+
github |
12+
hg |
13+
idea |
14+
svn |
15+
vagrant
16+
)\/
1717
|
1818
[gG]emfile(?:\.lock)?
1919
|
@@ -22,31 +22,29 @@ exclude: !ruby/regexp '/
2222
research
2323
)\/
2424
|
25+
\b(?i:TAGS)$
26+
|
2527
\.(?:
2628
appveyor |
2729
coveralls |
2830
fasterer |
2931
pullreview |
30-
rubocop.* |
32+
rubocop* |
3133
travis |
3234
unused
33-
)\.yml$
34-
|
35-
(?i:TAGS)$
35+
)\.yml$
3636
|
3737
\.(?:
38-
DS_Store |
39-
autotest |
40-
byebug_history |
41-
gemtest |
42-
gitattributes |
43-
gitignore |
44-
hoerc |
45-
minitest.rb |
46-
simplecov-prelude.rb
38+
DS_Store |
39+
autotest |
40+
byebug_history |
41+
gemtest |
42+
gitattributes |
43+
gitignore |
44+
hoerc |
45+
minitest.rb |
46+
simplecov-prelude.rb
4747
)$
4848
|
4949
\.gemspec$
50-
|
51-
Vagrantfile$
5250
/x'

0 commit comments

Comments
 (0)