diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 989d7f9..c1a9014 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,10 @@ name: build -on: [push, pull_request] +on: + push: + schedule: + - cron: '20 5 * * 1' + workflow_dispatch: jobs: test: @@ -8,17 +12,51 @@ jobs: runs-on: ubuntu-20.04 strategy: + fail-fast: false matrix: ruby-version: - - 3.0.0 - - 2.7.2 - - 2.6.6 - - 2.5.8 - - 2.4.10 - - 2.3.8 - - 2.2.10 + - 3.2 + - 3.1 + - 3.0 + - 2.7 + - 2.6 + - 2.5 + - 2.4 + - 2.3 + - 2.2 + - jruby-9.4.3.0 - jruby-9.2.14.0 - - truffleruby-21.0.0 + - truffleruby-23.0.0 + - truffleruby-22.1.0 + rack-version: + - # default Rack version + + include: + - ruby-version: 2.7 + rack-version: ~>1.2.0 + - ruby-version: 2.7 + rack-version: ~>1.2 + - ruby-version: 2.7 + rack-version: ~>2.0.0 + - ruby-version: 2.7 + rack-version: ~>2.0 + - ruby-version: 2.7 + rack-version: ~>3.0 + - ruby-version: 2.7 + rack-version: ~>3.0.0 + + - ruby-version: 3.2 + rack-version: ~>1.2.0 + - ruby-version: 3.2 + rack-version: ~>1.2 + - ruby-version: 3.2 + rack-version: ~>2.0.0 + - ruby-version: 3.2 + rack-version: ~>2.0 + - ruby-version: 3.2 + rack-version: ~>3.0 + - ruby-version: 3.2 + rack-version: ~>3.0.0 steps: - uses: actions/checkout@v2 @@ -29,5 +67,9 @@ jobs: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true + - name: Specify "rack" gem version ${{ matrix.rack-version }} + if: ${{ matrix.rack-version }} + run: bundle add rack --version="${{ matrix.rack-version }}" + - name: Run tests run: bundle exec rspec --format documentation diff --git a/lib/logtail-rack/version.rb b/lib/logtail-rack/version.rb index 085da5a..913b512 100755 --- a/lib/logtail-rack/version.rb +++ b/lib/logtail-rack/version.rb @@ -1,7 +1,7 @@ module Logtail module Integrations module Rack - VERSION = "0.2.0" + VERSION = "0.2.1" end end end diff --git a/logtail-ruby-rack.gemspec b/logtail-ruby-rack.gemspec index 1adaf36..51a9680 100644 --- a/logtail-ruby-rack.gemspec +++ b/logtail-ruby-rack.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.add_dependency "logtail", "~> 0.1" - spec.add_runtime_dependency "rack", ">= 1.2", "< 3.0" + spec.add_runtime_dependency "rack", ">= 1.2", "< 4.0" spec.add_development_dependency "bundler", ">= 0.0" spec.add_development_dependency "rake", "~> 10.0"