Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdana committed Jun 29, 2024
1 parent ecd9f86 commit b9456b8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, ruby-head]
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, ruby-head]
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand All @@ -26,7 +26,7 @@ jobs:
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand All @@ -38,12 +38,12 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.3
bundler-cache: true
- run: gem install did_you_mean; COVERAGE=1 bundle exec rspec
- run: COVERAGE=1 bundle exec rspec

- uses: actions/upload-artifact@v2
with:
Expand All @@ -55,40 +55,40 @@ jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.3
bundler-cache: true
- run: gem install did_you_mean; bundle exec rubocop
- run: bundle exec rubocop

spellr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.3
bundler-cache: true
- run: gem install did_you_mean; bundle exec spellr
- run: bundle exec spellr

leftovers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.3
bundler-cache: true
- run: gem install did_you_mean; bundle exec leftovers
- run: bundle exec leftovers

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.3
bundler-cache: true
- run: gem install did_you_mean; bundle exec rake build
- run: bundle exec rake build

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ However, in a programming context spelling things _consistently_ is useful, wher

## Installation

This is tested against ruby 2.5-3.0.
This is tested against ruby 2.5-3.3.

### With Bundler

Expand Down
1 change: 1 addition & 0 deletions spellr.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_development_dependency 'base64'
spec.add_development_dependency 'bundler', '~> 2.0'
spec.add_development_dependency 'did_you_mean' unless ENV['DID_YOU_MEAN'] == '0'
spec.add_development_dependency 'leftovers', '>= 0.4.0'
Expand Down

0 comments on commit b9456b8

Please sign in to comment.