Skip to content

Commit

Permalink
Update smoke tests to use both Rack 2 and 3
Browse files Browse the repository at this point in the history
  • Loading branch information
tschafer-gc committed Nov 14, 2024
1 parent 529392f commit 5fcf274
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5fcf274

Please sign in to comment.