Skip to content

Commit

Permalink
Update policy and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
halostatue committed Sep 11, 2024
1 parent 6922af6 commit 092408d
Show file tree
Hide file tree
Showing 9 changed files with 300 additions and 223 deletions.
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/diff-lcs
150 changes: 119 additions & 31 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,62 +7,150 @@ 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.4'
- '2.5'
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- head
- jruby
- jruby-head
- truffleruby
include:
- ruby: head
continue-on-error: true
- ruby: jruby-head
- ruby: jruby
os: ubuntu-22.04
continue-on-error: true
- os: windows-latest
ruby: mingw
- os: windows-latest
ruby: mswin
- os: windows-latest
ruby: jruby
- ruby: truffleruby
os: ubuntu-22.04
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 }}
rubygems: latest
bundler: 2
bundler-cache: true

- 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
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

0 comments on commit 092408d

Please sign in to comment.