Skip to content

Commit

Permalink
chore: add Ruby 3.1+ to CI, add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Aug 23, 2023
1 parent 6d94465 commit 60cf7fd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/eol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.2, 2.3, 2.4, 2.5]
ruby: [2.2, 2.3, 2.4, 2.5, 2.6]
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
BUNDLE_GEMFILE: gemfiles/eol.gemfile
# To avoid installing ruby-next with all the transpiling deps
RELEASING_PACO: true
CI: true
EOL: true
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
strategy:
matrix:
ruby:
- "3.2"
- "3.1"
- "3.0"
- "2.7"
- "2.6"
- "jruby"
- "truffleruby"

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand Down
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
default: test

nextify:
bundle exec rake nextify

test: nextify
bundle exec rake
CI=true bundle exec rake

lint:
bundle exec rubocop

release: test lint
git status
RELEASING_PACO=true gem release -t
git push
git push --tags
8 changes: 8 additions & 0 deletions paco.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,12 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_dependency "ruby-next-core", ">= 0.15.0"

# When gem is installed from source, we add `ruby-next` as a dependency
# to auto-transpile source files during the first load
if ENV["RELEASING_PACO"].nil? && File.directory?(File.join(__dir__, ".git"))
spec.add_runtime_dependency "ruby-next", ">= 0.15.0"
else
spec.add_runtime_dependency "ruby-next-core", ">= 0.15.0"
end
end

0 comments on commit 60cf7fd

Please sign in to comment.