From 7ecf673eb495cab25d589e82e6632e16b36b916d Mon Sep 17 00:00:00 2001 From: Felix Livni Date: Sun, 3 Nov 2024 16:28:43 -0800 Subject: [PATCH 1/9] add ci.yml --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a9321c1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: [2.7, 3.0, 3.1] + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: actions/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + - name: Install dependencies + run: bundle install + - name: Run tests + run: bundle exec rake test \ No newline at end of file From 520efefe206549c37b8adc6a7d62e7130722c305 Mon Sep 17 00:00:00 2001 From: Felix Livni Date: Sun, 3 Nov 2024 16:38:03 -0800 Subject: [PATCH 2/9] ... --- .github/workflows/ci.yml | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9321c1..85248f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,26 +1,18 @@ name: CI - -on: - push: - branches: - - main - pull_request: - branches: - - main - +on: [push, pull_request] jobs: test: - runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - ruby-version: [2.7, 3.0, 3.1] + os: [ubuntu-latest, macos-latest] + # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' + ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', head, jruby, jruby-head, truffleruby, truffleruby-head] + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - name: Set up Ruby - uses: actions/setup-ruby@v1 + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 with: - ruby-version: ${{ matrix.ruby-version }} - - name: Install dependencies - run: bundle install - - name: Run tests - run: bundle exec rake test \ No newline at end of file + ruby-version: ${{ matrix.ruby }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - run: bundle exec rake \ No newline at end of file From e285cce005f1e7035c5d096852cc46fba3e0cbe0 Mon Sep 17 00:00:00 2001 From: Felix Livni Date: Sun, 3 Nov 2024 16:39:16 -0800 Subject: [PATCH 3/9] ... --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 0bc07e2..2f35177 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - batch_queue (0.1.0) + batch_queue (1.0.0) GEM remote: https://rubygems.org/ @@ -28,4 +28,4 @@ DEPENDENCIES rake (~> 13.0) BUNDLED WITH - 1.16.2 + 1.17.2 From 2c88995b52dbc8edc5d0ab97df64b3ca615cca6b Mon Sep 17 00:00:00 2001 From: Felix Livni Date: Sun, 3 Nov 2024 16:45:11 -0800 Subject: [PATCH 4/9] Update bundler. --- Gemfile.lock | 2 +- batch_queue.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 2f35177..8f80ff2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -22,7 +22,7 @@ PLATFORMS DEPENDENCIES batch_queue! - bundler (~> 1.16) + bundler (~> 2.2) minitest (~> 5.0) minitest-reporters (~> 1.4) rake (~> 13.0) diff --git a/batch_queue.gemspec b/batch_queue.gemspec index bf164ac..efefd40 100644 --- a/batch_queue.gemspec +++ b/batch_queue.gemspec @@ -23,7 +23,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 "bundler", "~> 1.16" + spec.add_development_dependency "bundler", "~> 2.2" spec.add_development_dependency "rake", "~> 13.0" spec.add_development_dependency "minitest", "~> 5.0" spec.add_development_dependency "minitest-reporters", '~> 1.4' From bc53f5a424bf467bc44185f14dddfdf25ad87d15 Mon Sep 17 00:00:00 2001 From: Felix Livni Date: Sun, 3 Nov 2024 16:48:46 -0800 Subject: [PATCH 5/9] ... --- Gemfile.lock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 8f80ff2..e182e1e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -19,6 +19,7 @@ GEM PLATFORMS ruby + universal-darwin-24 DEPENDENCIES batch_queue! @@ -28,4 +29,4 @@ DEPENDENCIES rake (~> 13.0) BUNDLED WITH - 1.17.2 + 2.2.0 From 0f8d6b712be36b7fe77507efbd8d19393a396084 Mon Sep 17 00:00:00 2001 From: Felix Livni Date: Sun, 3 Nov 2024 16:57:12 -0800 Subject: [PATCH 6/9] ... --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index e182e1e..6313b91 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -29,4 +29,4 @@ DEPENDENCIES rake (~> 13.0) BUNDLED WITH - 2.2.0 + 2.3.26 From d4b3370f7f1bd57a71aa042d8a9e97ee1c22c410 Mon Sep 17 00:00:00 2001 From: Felix Livni Date: Sun, 3 Nov 2024 17:01:22 -0800 Subject: [PATCH 7/9] ... --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85248f0..2946d0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,8 +6,8 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' - ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', head, jruby, jruby-head, truffleruby, truffleruby-head] + # Could consider adding jruby, jruby-head in the future + ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', head, truffleruby, truffleruby-head] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 From 0521811ef65bf8904b38aaa4cadcab5ac881659a Mon Sep 17 00:00:00 2001 From: Felix Livni Date: Sun, 3 Nov 2024 17:02:11 -0800 Subject: [PATCH 8/9] ... --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2946d0f..6e56f38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,8 +6,8 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - # Could consider adding jruby, jruby-head in the future - ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', head, truffleruby, truffleruby-head] + # Could consider adding head, jruby-head in the future + ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', jruby, truffleruby, truffleruby-head] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 From 562327c2cce8cef29b066f6fed0b4244170fc1c4 Mon Sep 17 00:00:00 2001 From: Felix Livni Date: Sun, 3 Nov 2024 17:04:50 -0800 Subject: [PATCH 9/9] ... --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e56f38..2f81f17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,8 +6,8 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - # Could consider adding head, jruby-head in the future - ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', jruby, truffleruby, truffleruby-head] + # Could consider adding head, jruby-head, jruby in the future + ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', truffleruby, truffleruby-head] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4