Skip to content

Commit

Permalink
Allow to skip frontend specs from extensions
Browse files Browse the repository at this point in the history
When we test extensions with the new starter frontend
we run this template to generate the dummy app. This
template also installs all frontend specs. This leads
to unnecessary long build times, flaky sepcs and simply
wastes a lot of resources.

Since the extension tests it's own behavior in the dummy app
we simply must not duplicate every single spec we also test
in this repo.
  • Loading branch information
tvdeyen committed Dec 19, 2024
1 parent 9f6d397 commit 1b7c413
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@
end
RUBY

directory 'spec', verbose: false
# Allows to skip frontend specs generation from extensions CI pipelines
if ENV.fetch("FRONTEND_SPECS", "all") == "all"
directory 'spec', verbose: false
end

# In CI, the Rails environment is test. In that Rails environment,
# `Solidus::InstallGenerator#setup_assets` adds `solidus_frontend` assets to
Expand Down

0 comments on commit 1b7c413

Please sign in to comment.