Skip to content

Commit

Permalink
Merge pull request #174 from tvdeyen/fix-builds
Browse files Browse the repository at this point in the history
Remove Alchemy 7.0 and 6.0 support
  • Loading branch information
tvdeyen authored Jul 5, 2023
2 parents 3bf18bd + 5294a12 commit d2de21f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ jobs:
fail-fast: false
matrix:
alchemy_branch:
- 6.0-stable
- 6.1-stable
- main
ruby:
- "3.0"
- "3.1"
Expand Down
6 changes: 1 addition & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
source "https://rubygems.org"

alchemy_branch = ENV.fetch("ALCHEMY_BRANCH", "main")
alchemy_branch = ENV.fetch("ALCHEMY_BRANCH", "6.1-stable")
gem "alchemy_cms", github: "AlchemyCMS/alchemy_cms", branch: alchemy_branch

if alchemy_branch == "main"
gem "jsbundling-rails", "~> 1.1"
end

gem "rails", "~> 6.1.7"
gem "listen", "~> 3.8"

Expand Down
11 changes: 2 additions & 9 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,16 @@ namespace :alchemy do
desc "Prepares database for testing Alchemy"
task :prepare do
Dir.chdir("spec/dummy") do
if ENV["ALCHEMY_BRANCH"] == "main"
system("bin/rails javascript:install:esbuild") || exit($?.exitstatus)
end
system(
<<~SETUP
bin/rake railties:install:migrations
bin/rake db:drop db:create db:migrate
bin/rails g alchemy:install --force --auto-accept
bin/rails g alchemy:install --force --auto-accept --force-babel-config
bin/rails g alchemy:devise:install --force
SETUP
)
exit($?.exitstatus) unless $?.success?
if ENV["ALCHEMY_BRANCH"] == "main"
system("bin/rails javascript:build") || exit($?.exitstatus)
else
system("bin/rails webpacker:compile") || exit($?.exitstatus)
end
system("bin/rails webpacker:compile") || exit($?.exitstatus)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion alchemy-devise.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |s|

s.files = Dir["{app,config,db,lib}/**/*", "LICENSE", "CHANGELOG.md", "README.md"]

s.add_dependency "alchemy_cms", [">= 6.0.0", "< 8"]
s.add_dependency "alchemy_cms", [">= 6.1.0", "< 7"]
s.add_dependency "devise", [">= 4.7.1", "< 5"]

s.add_development_dependency "capybara"
Expand Down

0 comments on commit d2de21f

Please sign in to comment.