Skip to content

Commit 8d653a5

Browse files
committed
CI: Skip install_solidus check on non-current version
The installer always uses the current released minor version (4.2 time writing this), but the check runs on all pipeline runs, wasting CI time and precious resources. Also it fails anyway, because of conflicting dependencies. So, we only run the check on main and latest minor now.
1 parent 6e981d3 commit 8d653a5

File tree

1 file changed

+27
-20
lines changed

1 file changed

+27
-20
lines changed

.circleci/config.yml

+27-20
Original file line numberDiff line numberDiff line change
@@ -268,26 +268,33 @@ jobs:
268268
ruby: "3.0"
269269
steps:
270270
- checkout
271-
- libvips
272-
273-
- install_solidus: { flags: "--sample=false --frontend=starter --authentication=devise" }
274-
- test_page: { expected_text: "The only eCommerce platform you’ll ever need." }
275-
- run:
276-
name: Ensure the correct PayPal is installed for SSF
277-
command: |
278-
cd /tmp/my_app
279-
bundle list | grep 'solidus_paypal_commerce_platform (1.'
280-
281-
- install_solidus: { flags: "--sample=false --frontend=starter --authentication=devise --payment-method=stripe" }
282-
- test_page: { expected_text: "The only eCommerce platform you’ll ever need." }
283-
284-
- install_dummy_app
285-
286-
- install_dummy_app: { extra_gems: "solidus_frontend" }
287-
- run:
288-
name: "Ensure solidus_frontend installer is run"
289-
command: |
290-
test -f /tmp/dummy_extension/spec/dummy/config/initializers/solidus_frontend.rb
271+
- when:
272+
condition:
273+
or:
274+
- equal: [main, << pipeline.git.branch >>]
275+
- equal: [v4.2, << pipeline.git.branch >>]
276+
steps:
277+
- libvips
278+
- install_solidus:
279+
flags: "--sample=false --frontend=starter --authentication=devise"
280+
- test_page:
281+
expected_text: "The only eCommerce platform you’ll ever need."
282+
- run:
283+
name: Ensure the correct PayPal is installed for SSF
284+
command: |
285+
cd /tmp/my_app
286+
bundle list | grep 'solidus_paypal_commerce_platform (1.'
287+
- install_solidus:
288+
flags: "--sample=false --frontend=starter --authentication=devise --payment-method=stripe"
289+
- test_page:
290+
expected_text: "The only eCommerce platform you’ll ever need."
291+
- install_dummy_app
292+
- install_dummy_app:
293+
extra_gems: "solidus_frontend"
294+
- run:
295+
name: "Ensure solidus_frontend installer is run"
296+
command: |
297+
test -f /tmp/dummy_extension/spec/dummy/config/initializers/solidus_frontend.rb
291298
292299
test_solidus:
293300
parameters:

0 commit comments

Comments
 (0)