Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to skip frontend specs from extensions #400

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,13 @@
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
else
# This file is always necessary in order to run frontend specs from extensions
copy_file 'spec/solidus_starter_frontend_spec_helper.rb', verbose: auto_accept, force: auto_accept

Check warning on line 153 in template.rb

View check run for this annotation

Codecov / codecov/patch

template.rb#L153

Added line #L153 was not covered by tests
end

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