Skip to content

Commit

Permalink
Test Solidus 4.3
Browse files Browse the repository at this point in the history
We do not install solidus_admin preview since this is a
fundamental change that we de not support right now.
  • Loading branch information
tvdeyen committed Dec 29, 2023
1 parent 8f8c716 commit 3a3dd41
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- "4.0"
- "4.1"
- "4.2"
- "4.3"
env:
ALCHEMY_VERSION: ${{ matrix.alchemy }}
SOLIDUS_VERSION: ${{ matrix.solidus }}
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

solidus_version = ENV.fetch("SOLIDUS_VERSION", "4.2")
solidus_version = ENV.fetch("SOLIDUS_VERSION", "4.3")
gem "solidus_core", "~> #{solidus_version}.0"
gem "solidus_backend", "~> #{solidus_version}.0"
if Gem::Version.new(solidus_version) >= Gem::Version.new("4.0")
Expand Down
7 changes: 5 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ task default: %i[test_setup spec]

desc "Setup test app"
task :test_setup do
solidus_version = ENV.fetch("SOLIDUS_VERSION", "4.2")
solidus_install_options = "--payment-method none --frontend none --authentication none"
solidus_version = ENV.fetch("SOLIDUS_VERSION", "4.3")
solidus_install_options = "--payment-method=none --frontend=none --authentication=none"
if solidus_version >= "4.3"
solidus_install_options += " --admin-preview=false"
end
Dir.chdir("spec/dummy") do
system <<~SETUP
bin/rake db:environment:set db:drop && \
Expand Down
3 changes: 3 additions & 0 deletions spec/dummy/config/storage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test:
service: Disk
root: <%= Rails.root.join("tmp/storage") %>

0 comments on commit 3a3dd41

Please sign in to comment.