From 5fcf27403aee34ad877cdad8639351b7ca7ad538 Mon Sep 17 00:00:00 2001 From: tschafer-gc Date: Thu, 14 Nov 2024 09:50:08 +0000 Subject: [PATCH] Update smoke tests to use both Rack 2 and 3 --- .github/workflows/tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5a21a94..c590df7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,6 +24,7 @@ jobs: fail-fast: false matrix: ruby_version: ["3.0", "3.1", "3.2", "3.3"] + rack_version: ["~> 2", "~> 3"] runs-on: ubuntu-latest services: postgres: @@ -51,7 +52,15 @@ jobs: uses: ruby/setup-ruby@v1 with: bundler-cache: true - ruby-version: "${{ matrix.ruby-version }}" + ruby-version: "${{ matrix.ruby_version }}" + - name: Update Gemfile for Rack and Rackup versions + run: | + if [[ "${{ matrix.rack_version }}" == "~> 2" ]]; then + echo 'gem "rackup", "~> 1"' >> Gemfile + fi + echo 'gem "rack", "${{ matrix.rack_version }}"' >> Gemfile + - name: Install Dependencies + run: bundle install - name: Start bin/que run: | bundle exec bin/que ./lib/que.rb --metrics-port=8080 --ci