Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update policies and add funding #182

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# These are supported funding model platforms

github: halostatue
buy_me_a_coffee: halostatue
ko_fi: halostatue
tidelift: rubygems/mime-types
147 changes: 118 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Ruby CI

on:
pull_request:
Expand All @@ -7,53 +7,117 @@ on:
workflow_dispatch:

jobs:
test:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
rubygems: latest
bundler: 2
bundler-cache: true

- run: bundle exec standardrb

required-ubuntu:
name: Ruby ${{ matrix.ruby }} - ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
ruby:
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- head
- jruby
- jruby-head
- truffleruby
include:
- ruby: head
- ruby: jruby
os: ubuntu-22.04
continue-on-error: true
- ruby: jruby-head
- ruby: truffleruby
os: ubuntu-22.04
continue-on-error: true
- os: windows-latest
ruby: mingw
- os: windows-latest
ruby: mswin
- os: windows-latest
ruby: jruby
continue-on-error: true
- os: ubuntu-22.04
ruby: head
continue-on-error: true
- os: ubuntu-22.04
ruby: '3.1'
- os: ubuntu-22.04
ruby: '3.2'
- os: ubuntu-22.04
ruby: '3.3'
standardrb: true

runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.continue-on-error || false }}
continue-on-error: ${{ matrix.continue-on-error }}

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: latest
bundler: 2
bundler-cache: true

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

required-macos:
name: Ruby ${{ matrix.ruby }} - ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- macos-12
- macos-13
- macos-14
ruby:
- '2.6'
- '2.7'
- '3.1'
- '3.2'
- '3.3'

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: latest
bundler: 2
bundler-cache: true

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

required-windows:
name: Ruby ${{ matrix.ruby }} - ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-2019
- windows-2022
ruby:
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- mswin
- ucrt
include:
- ruby: mingw
os: windows-2022

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand All @@ -63,5 +127,30 @@ jobs:

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

- if: matrix.standardrb == true
run: bundle exec standardrb
ruby-head-optional:
name: Ruby ${{ matrix.ruby }} - ${{ matrix.os }} (optional)

strategy:
fail-fast: false

matrix:
ruby:
- head
os:
- macos-latest
- ubuntu-latest
- windows-latest

continue-on-error: true
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: latest
bundler: 2
bundler-cache: true

- run: bundle exec ruby -S rake test --trace
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
.rake_tasks~
.source_index
Gemfile.lock
coverage.info
coverage/
doc/
html/
pkg/
Expand Down
44 changes: 21 additions & 23 deletions .hoerc
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ exclude: !ruby/regexp '/
)$
|
\.(?:
bundle|
git|
github|
hg|
idea|
svn|
vagrant
)\/
bundle |
git |
github |
hg |
idea |
svn |
vagrant
)\/
|
[gG]emfile(?:\.lock)?
|
Expand All @@ -22,31 +22,29 @@ exclude: !ruby/regexp '/
research
)\/
|
\b(?i:TAGS)$
|
\.(?:
appveyor |
coveralls |
fasterer |
pullreview |
rubocop.* |
rubocop* |
travis |
unused
)\.yml$
|
(?i:TAGS)$
)\.yml$
|
\.(?:
DS_Store |
autotest |
byebug_history |
gemtest |
gitattributes |
gitignore |
hoerc |
minitest.rb |
simplecov-prelude.rb
DS_Store |
autotest |
byebug_history |
gemtest |
gitattributes |
gitignore |
hoerc |
minitest.rb |
simplecov-prelude.rb
)$
|
\.gemspec$
|
Vagrantfile$
/x'
Loading
Loading