Skip to content

Commit

Permalink
Make installations less hacky
Browse files Browse the repository at this point in the history
  • Loading branch information
tschafer-gc committed Nov 14, 2024
1 parent 5fcf274 commit 89f9fc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ jobs:
with:
bundler-cache: true
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
Expand Down
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ group :test do
gem 'rspec', '~> 3.9'
end

gem "rack", ENV['RACK_VERSION']
if ENV['RACK_VERSION'] == '2.0'
gem "rackup", "~> 2.0"
else
gem "rackup", "~> 3.0"
end

gem 'prometheus-client', '~> 1.0'
source "https://rubygems.pkg.github.com/gocardless" do
gem "prometheus_gcstat"
Expand Down

0 comments on commit 89f9fc2

Please sign in to comment.